1
0
Fork 0
forked from 0x2620/oxjs

minor changes

This commit is contained in:
rolux 2011-11-30 15:56:01 +01:00
commit 137944a1a7
6 changed files with 10 additions and 2 deletions

View file

@ -495,6 +495,9 @@ Ox.map <f> Transforms the values of an array, object or string
# [0]
@*/
// FIXME: it would sometimes be nice to have Ox.map(3, function(i) {...})
// instead of Ox.range(3).map(function(i) {...})
Ox.map = function(obj, fn) {
// fixme: return null to filter out may be a bit esoteric
var isObject = Ox.isObject(obj),