Returns an OperationFunction that yields elements that are of the specified type.
Type of items in the source.
Type of items to yield.
A function that determines if an item is of the specified type.
An OperationFunction that yields elements that are of the specified type.
const result = ofType<string, string>()(Number)(["a", 1, "b", 2]);console.log([...result]); // [1, 2] Copy
const result = ofType<string, string>()(Number)(["a", 1, "b", 2]);console.log([...result]); // [1, 2]
Returns an OperationFunction that yields elements that are of the specified type.