User Tools

Site Tools


Sidebar

array:remove

.remove()

Method that removes a value from an array. This method was created by John Resig and is licensed under an MIT license. This method is the equivalent of the function array_remove()

Usage

var array = new Array("a", "b", "c");
array.remove(0);//Remove key 0 from array

For more examples, see: ejohn.org/blog/javascript-array-remove/.

Parameters

Parameter Data type Required Description
from number The array index to start the removal
to number the array index to end the removel

Return values

Value Meaning
Array The array with elements deleted
array/remove.txt · Last modified: 2017/05/20 12:51 (external edit)