iter-fns - v0.13.0
    Preparing search index...

    Function pipe

    • Creates a pipe object to chain operations together.

      Type Parameters

      Parameters

      • iterable: It

        the iterable

      Returns Pipe<It>

      pipe([1, 2, 3])
      .then((xs) => map(xs, (x) => x + 1))
      .then((xs) => filter(xs, (x) => x > 2))
      .then((xs) => reduce(xs, (acc, x) => acc + x))