Appframe Knowledge Base


1 hits
0

How to remove item from an array at a specified index

var myArray = [1,2,3,4,5]; //[1, 2, 3, 4, 5]

af.common.arrayRemoveAt(myArray,2,3);
//Removes items 3 and 4 from the array [1, 2, 5]

af.common.arrayRemoveAt(myArray, 1);
// Removes item at position 1 from the array [1, 5];

common web · Perma link post comment Posted by: Øystein Kaldestad (12-apr-2013)