How to remove item from array by value?
This can be a global function or a method of a custom object, if you aren’t allowed to add to native prototypes. It removes all of the items from the array that match any of the arguments. To make it a global- And to take care of IE8 and below-