diff --git a/source/Ox/js/Array.js b/source/Ox/js/Array.js index a3faa4c0..90b53594 100644 --- a/source/Ox/js/Array.js +++ b/source/Ox/js/Array.js @@ -1,7 +1,7 @@ 'use strict'; /*@ -Ox.compact Returns an array w/o undefined values +Ox.compact Removes null or undefined values > Ox.compact([null,,1,,2,,3]) [1, 2, 3] @*/ @@ -33,6 +33,7 @@ Ox.flatten = function(arr) { /*@ Ox.merge Merges an array with one or more other arrays + For convenience, literals are treated as arrays with one element > Ox.merge([1], [2, 3, 2], [1]) [1, 2, 3, 2, 1] > Ox.merge(1, [2, 3, 2], 1) @@ -58,7 +59,7 @@ Ox.range Python-style range stop (exclusive). (start, stop, step) -> <[n]> range Returns an array of numbers from start (inclusive) to - stop (exclusive), incrementing by step. + stop (exclusive), incrementing by step. start Start value stop Stop value step Step value