Consumes the iterator into true if the item is in the sequence.
import { pipe } from "yta";import { includes, of } from "yta/sync";pipe(of(1, 3, 5), includes(3));// => true Copy
import { pipe } from "yta";import { includes, of } from "yta/sync";pipe(of(1, 3, 5), includes(3));// => true
import { includes, of, pipe } from "yta";pipe(of("foo", "bar", "baz"), includes("quux"));// => false Copy
import { includes, of, pipe } from "yta";pipe(of("foo", "bar", "baz"), includes("quux"));// => false
Consumes the iterator into true if the item is in the sequence.