T
Thomas Allen
What is the purpose of canCall in My Library (hereafter and forever ML
so as not to imply that this is mine)? Specifically, I am thinking of
the following code:
var canCall = !!Function.prototype.call;
// ...
if (canCall) {
forEachProperty = function(o, fn, context) {
//...
Why does the presence of Function.prototype.call matter, when
Function.prototype.apply can do the same thing? I ask because if
there's a difference, I'd be very interested as I equate the two in
behavior, apart from their different call styles (making me think of
call as more limited).
Thomas
so as not to imply that this is mine)? Specifically, I am thinking of
the following code:
var canCall = !!Function.prototype.call;
// ...
if (canCall) {
forEachProperty = function(o, fn, context) {
//...
Why does the presence of Function.prototype.call matter, when
Function.prototype.apply can do the same thing? I ask because if
there's a difference, I'd be very interested as I equate the two in
behavior, apart from their different call styles (making me think of
call as more limited).
Thomas