yta
    Preparing search index...

    Function includes

    • 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
      import { includes, of, pipe } from "yta";

      pipe(of("foo", "bar", "baz"), includes("quux"));
      // => false

      Type Parameters

      • A

      Parameters

      • target: A

      Returns (items: Iterable<A>) => boolean