From 6b24170e68d3fd4899db78d571bebe7034c02ec6 Mon Sep 17 00:00:00 2001 From: tjcrowder Date: Mon, 7 Sep 2009 13:09:23 +0100 Subject: [PATCH] doc: ported and updated old doc for Array#without --- src/lang/array.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lang/array.js b/src/lang/array.js index 44073f5..1481dfd 100644 --- a/src/lang/array.js +++ b/src/lang/array.js @@ -210,11 +210,19 @@ Array.from = $A; } /** - * Array#without(value...) -> Array + * Array#without(value[, value...]) -> Array * - value (?): A value to exclude. * * Produces a new version of the array that does not contain any of the - * specified values. + * specified values, leaving the original array unchanged. + * + * ### Examples + * + * [3, 5, 6].without(3) + * // -> [5, 6] + * + * [3, 5, 6, 20].without(20, 6) + * // -> [3, 5] **/ function without() { var values = slice.call(arguments, 0);