Answers for "Remove item from array in jquery"

0

Remove item from array in jquery

var y = [1, 2, 2, 3, 2]
var removeItem = 2;

y = jQuery.grep(y, function(value) {
  return value != removeItem;
});
Posted by: Guest on October-21-2021

Code answers related to "Remove item from array in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language