From ab2e5ecda0f173444493eb768aaf239b31d153c5 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 29 Mar 2012 10:11:45 +0000 Subject: [PATCH] minor fixes in documentation --- source/Ox/js/Array.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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