1
0
Fork 0
forked from 0x2620/oxjs

minor changes in OxJS

This commit is contained in:
rolux 2012-01-06 17:27:54 +05:30
commit f76ee0cf36
6 changed files with 16 additions and 6 deletions

View file

@ -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);