ckhatton
12/9/2014 - 12:19 AM

Remove specific values from an array.

Remove specific values from an array.

function removeFromArray(value, array) {
  return $.grep(array, function(elem, index) {
    return elem !== value;
  });
}