doc: ported and updated old doc for Array#without

This commit is contained in:
tjcrowder 2009-09-07 13:09:23 +01:00 committed by Tobie Langel
parent a3eaa0401f
commit 6b24170e68
1 changed files with 10 additions and 2 deletions

View File

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