Linting
This commit is contained in:
@ -11,7 +11,7 @@ _(For a snippet that does not mutate the original array see [`without`](#without
|
||||
const pull = (arr, ...args) => {
|
||||
let argState = Array.isArray(args[0]) ? args[0] : args;
|
||||
let pulled = arr.filter((v, i) => !argState.includes(v));
|
||||
arr.length = 0;
|
||||
arr.length = 0;
|
||||
pulled.forEach(v => arr.push(v));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user