Remove an object from an array JavaScript

by Mohan 2012-09-20 22:42:30



Remove an object from an array
JavaScript 1.8
function RemoveArrayElement( array, element ) !!let (pos=array.lastIndexOf(element)) pos != -1 && array.splice(pos, 1);




846
like
0
dislike
0
mail
flag

You must LOGIN to add comments