Recently, one of the forums discussed the example of minimalist
calling the IAP for the array.
["1", "2", "3"].map(parseInt);
=>
Function.prototype.only=function(numberOfArgs) {
var self=this; //the original function
return function() {
return self.apply(this,[].slice.call(arguments,0,numberOfArgs))
}
}
["1","2","3"].map(parseInt.only(1))
Is it possible a similar challenge in prototype.js without
substitution wrapper function ["1","2","3"].map(function(value)
{return parseInt(value)})?
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.