JavaScript filter callback that uses arguments - Stack Overflow
The goal is to filter an array and remove all occurrences of elements specified in its argument list. ... (typeof this, this); // 'object' Number(3) return true; } [0].filter(foo, 3); And, since === first checks for type equality, a primitive and boxed number cannot ... This function can do the job you want passing the items to be remove as an ...