Does modern JavaScript have a terse way to get an object's property and raise an exception if that property doesn't exist?
Short version: Properties that aren't included in when doing `for (key in obj)`, mostly symbols. An easy example is the length property of an array
-
-
Oh, I guess that's what the words mean, but as usual I didn't even think of the possibility that a language would actually be designed this way...
-
It was less of an intentional original design, and more something that became concrete as the language matured (I believe ES5 was when it became a concrete thing you can control and query)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.