You are viewing a single comment's thread from:

RE: JavaScript Basics: Reflect.apply

in #javascript7 years ago

Last line is really interesting...
Function.prototype.apply.call
Was not aware it works that way. Actually:

Function.prototype.call === Function.prototype.bind.call.apply.bind.call

So it seem that Function.prototype functions (Function.prototype.bind, Function.prototype.call, etc.) do have object linkage to Function.prototypeobject. We can even access such linkage. See here:
Function.prototype.apply.__proto__ === Function.prototype

That's why we can chain it deeply. Really interesting. Also was not aware of such Reflect feature. Thanks for sharing.

Sort:  

Thank you for your informative reply.