Skip to content

Commit ef949b0

Browse files
committed
davidkhala.utils: 0.4.0
1 parent 484112f commit ef949b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

davidkhala/syntax/js.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ def filter(self, func: Callable):
1919
def forEach(self, func: Callable[[ValueType, int, "Array"], None]):
2020
for index, value in enumerate(self):
2121
func(value, index, self)
22+
23+
def minus(self, array):
24+
return [x for x in self if x not in array]

0 commit comments

Comments
 (0)