I am in a situation where I would like to know if a function is associated with setting a warning message when this function is called using callor applywith another context.
function myfn (){ }
var myfn = function () {}
var ref = myfn.bind(null);
I checked the function object in Firefox and the Chrome console, and the only difference I found is that the associated version has a name with a prefix bound.
> myfn.name
> "myfn"
> ref.name
> "bound myfn"
* NOTE: Not interested in older browsers (eg: <ie10)
source
share