Consumes the iterator into true if predicate holds true for one of more of the items in the sequence.
import { pipe } from "yta";import { of, some } from "yta/sync";pipe( of(1, 3, 5), some((n) => n % 2 === 0),);// => falsepipe( of("foo", "bar", "baz"), some((str) => str.startsWith("b")),);// => truepipe( of(), some(() => true),);// => false Copy
import { pipe } from "yta";import { of, some } from "yta/sync";pipe( of(1, 3, 5), some((n) => n % 2 === 0),);// => falsepipe( of("foo", "bar", "baz"), some((str) => str.startsWith("b")),);// => truepipe( of(), some(() => true),);// => false
See also:
The predicate function
Consumes the iterator into true if predicate holds true for one of more of the items in the sequence.
See also: