update docs

This commit is contained in:
rolux 2012-05-23 09:01:36 +02:00
parent 1b08732fa7
commit df67c37924

View file

@ -329,6 +329,7 @@ Ox.api = function(items, options) {
/*@
Ox.compact <f> Removes <code>null</code> or <code>undefined</code> values
(arr) -> <a> Array
> Ox.compact([null,,1,,2,,3])
[1, 2, 3]
@*/
@ -340,6 +341,7 @@ Ox.compact = function(arr) {
/*@
Ox.flatten <f> Flattens an array
(arr) -> <a> Array
> Ox.flatten([1, [2, [3], 2], 1])
[1, 2, 3, 2, 1]
@*/
@ -366,6 +368,7 @@ Ox.indexOf = function(arr) {
/*@
Ox.merge <f> Merges an array with one or more other arrays
For convenience, literals are treated as arrays with one element
(arr, arr[, arr[, ...]]) -> <a> Array
> Ox.merge([1], [2, 3, 2], [1])
[1, 2, 3, 2, 1]
> Ox.merge(1, [2, 3, 2], 1)