UNPKG
quxt
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.0
Lodash but OVERPOWERED!
github.com/quxapp/quxt
quxapp/quxt
quxt
/
.internal
/
subtract.js
9 lines
(8 loc)
•
182 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
function
subtract
(target, ...lists)
{ let
sub
= []
for
(list of lists) {
sub
=
sub
.
concat
(list) }
return
target.filter(x => !
sub
.includes(x)) }
module
.exports = subtract