forked from 0x2620/oxjs
minor changes in OxJS
This commit is contained in:
parent
66934d22a9
commit
f76ee0cf36
6 changed files with 16 additions and 6 deletions
|
|
@ -5,7 +5,6 @@ Ox.compact <f> Returns an array w/o <code>undefined</code> values
|
|||
> Ox.compact([null,,1,,2,,3])
|
||||
[1, 2, 3]
|
||||
@*/
|
||||
|
||||
Ox.compact = function(arr) {
|
||||
return arr.filter(function(val) {
|
||||
return !Ox.isNull(val) && !Ox.isUndefined(val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue