filter
deprecated@deprecated
Use a closure instead of a thisArg
. Signatures accepting a thisArg
will be removed in v8.
function filter<T, S extends T, A>(predicate: (
this: A,
value: T,
index: number,
) => value is S, thisArg: A): OperatorFunction<T, S>;function filter<T, S extends T>(predicate: (value: T, index: number) => value is S): OperatorFunction<T, S>;
function filter<T, A>(predicate: (
this: A,
value: T,
index: number,
) => boolean, thisArg: A): MonoTypeOperatorFunction<T>;§
filter<T, S extends T, A>(predicate: (this: A, value: T, index: number) => value is S, thisArg: A): OperatorFunction<T, S>
[src]§Return Type
§
OperatorFunction<T, S>
[src]§
filter<T, A>(predicate: (this: A, value: T, index: number) => boolean, thisArg: A): MonoTypeOperatorFunction<T>
[src]