#TIL In Javascript, there's actually one difference between "class A {...}" and "class A extends Object {...}":
-
-
Replying to @webbedspace
An "extends Object" class function has all of the Object static methods (keys, getOwnPropertyNames) on it.pic.twitter.com/cBTMko1bzR
2 replies 0 retweets 3 likes -
Replying to @webbedspace
(Such classes' static methods can invoke those methods via "super" if they so wish, but the utility of this is… eh.)pic.twitter.com/0CPxD4ivDq
2 replies 0 retweets 2 likes
Replying to @webbedspace
'(·) Retweeted '(·)
@webbedspace speaking of utility values of "eh", I have once used an anonymous constructor:https://twitter.com/allgebrah/status/369112860674113537 …
'(·) added,
1:15 AM - 10 Mar 2016
0 replies
0 retweets
0 likes
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.