9 lines
200 B
JavaScript
9 lines
200 B
JavaScript
|
|
||
|
export default function filter(input = [], itemFilter = []) {
|
||
|
if (input && input.length) {
|
||
|
let out = input.filter(item => item && itemFilter.indexOf(item) < 0)
|
||
|
return out
|
||
|
}
|
||
|
return []
|
||
|
}
|