Calls the shouldContinue function for each Push event of the given source. The returned source will emit an End event instead of the received Push event when the given shouldContinue function returns a falsy value.
Parameters
Parameter
Type
Description
shouldContinue
1
(value:T, index:number)=> value isS
A function that accepts a value and an index. The takeWhile method calls this function one time for each Push event of the given source.