forked from 0x2620/oxjs
minor changes
This commit is contained in:
parent
8e68992ea0
commit
137944a1a7
6 changed files with 10 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue