Remove Specific Value from Array

0
0

var arr = [1, 2, 3, 4, 5];
var removeItem = 2;   
 
arr = $.grep(arr, function(value) {
  return value != removeItem;
});
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.