Skip to content

Mint.utils.arrayRemoveItem

Tania Shatilova edited this page Nov 10, 2015 · 1 revision

The arrayRemoveItem() method removes first accurance of item from an array. The arrayRemoveItem() method removes item from array that is passed as first parameter.

Syntax

Mint.utils.arrayRemoveItem(array, itemToRemove);

Parameters

  • array - array in which item is searching.
  • itemToRemove - (object) item of array that should be removed.

Examples

var array = [1, 3, 8];
Mint.utils.arrayRemoveItem(array, 3); // array == [1, 8]

Clone this wiki locally