There is also the Javascript Array - map Method* ALex
*http://www.tutorialspoint.com/javascript/array_map.htm 2009/10/29 Tobias - http://tbGTD.tiddlyspot.com <[email protected]> > > Hi Eric, > > I just thought because of... http://docs.jquery.com/Utilities/jQuery.map > So are these equivalent then? > > Tobias. > > > Eric Shulman schrieb: > > > So jquery provides 'map' as a prototype function for all arrays, > > > correct? Quite neat. > > > > That's not JQuery... that's a TW core prototype function: > > > > Array.prototype.map = function(fn,thisObj) > > { > > var scope = thisObj || window; > > var a = []; > > for(var i=0, j=this.length; i < j; ++i) { > > a.push(fn.call(scope,this[i],i,this)); > > } > > return a; > > };} > > > > > > -e > > > -- http://www.multiurl.com/g/64 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" 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/tiddlywiki?hl=en -~----------~----~----~----~------~----~------~--~---

