ExtJS has an Ext.each () function, but is there any mapping () also somewhere?
I tried very hard, but did not find anything that could fill this role. It seems to be something simple and trivial that a JS library as large as Ext should have.
Or, if Ext doesn't really include it, what would be the best way to add it to Ext. Of course, I can just write:
Ext.map = function(arr, f) { ... };
But is this really the right way to do this?
source share