How do I execute thee? Let me count the ways f() f`` new f f.apply() +{toString:f} await{then:f} new Promise(f) Reflect.apply(f,{},[]) []={[Symbol.iterator]:f} new new Proxy(Proxy,{construct:f}) Object.create([],{length:{set:f}}).pop() [...Object.assign(function*(){}(),{next:f})]
-
-
afaik the only difference is that string coercion prefers toString and the others prefer valueOf. Of course, serious web professionals use Symbol.toPrimitive now. That line number thing is wild! Also, if you like C++ stream operators and eldritch horror: http://2ality.com/2011/12/fake-operator-overloading.html …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.