Array filtering
Modules
esnext.array.filter-reject
, esnext.typed-array.filter-reject
.
Built-ins signatures
class Array {
filterReject(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): Array<mixed>;
}
class %TypedArray% {
filterReject(callbackfn: (value: number, index: number, target: %TypedArray%) => boolean, thisArg?: any): %TypedArray%;
}
Entry points
core-js/proposals/array-filtering-stage-1
core-js(-pure)/full/array(/virtual)/filter-reject
core-js/full/typed-array/filter-reject
Examples
[1, 2, 3, 4, 5].filterReject(it => it % 2); // => [2, 4]