An array
A function that produces an Option.
The initial value.
OptionalthisArg:
any
If provided, it will be used as the this value for each invocation of predicate. If it is not
provided, undefined is used instead.
The reduced value.
reduceWhilereduces an iterable until the firstNoneis encountered.