Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
filter(filterFn) {
return this.__doCollectionTransform(
filter(item => filterFn(item, item, ...this.__selfParam)),
);
}
filter(filterFn) {
return this.__doCollectionTransform(
filter(([key, value]) => filterFn(value, key, ...this.__selfParam)),
);
}
filterNot(filterFn) {
return this.__doCollectionTransform(
filter((value, i) => !filterFn(value, i, ...this.__selfParam)),
);
}