Array.prototype.remove(item)

Description:

Remove the specified item from array.

Parameters:

  • item
    • Type: object (As same as or capability with type which initialized the array instance)

Returned Value:

  • Boolean value indicating whether the operation is successful or not.

Sample:

var array = ["Apple", "Banana", "Lemon"];
array.remove("Banana");
//Result: array = ["Apple", "Lemon"];

Last edited Aug 23, 2012 at 3:50 PM by rynnwang, version 2

Comments

No comments yet.