Folks,
Today we are going to discuss the basic and most important concept of Array utility methods.
Useful classes of Ext.Array
Today we are going to discuss the basic and most important concept of Array utility methods.
Useful classes of Ext.Array
Ext.Array.erase(array, index, removeCount):
It will remove the item from an array
Removes items from an array. This is functionally equivalent to the splice method of Array, but works around bugs in IE8's splice method and does not copy the removed elements in order to return them (because very often they are ignored).
It will returns array.
// At index 0 erase 2 items.
var a = Ext.Array.erase(['a', 'b', 'c', 'd', 'e'], 0, 2);
console.log(a);
// logs ["c", "d", "e"]
No comments:
Post a Comment