ixfx
    Preparing search index...

    Function movingWindowWithContext

    • As movingWindow but also allows access to context, namely you can access the window at any time without adding to it.

      const window = movingWindowWithContext(3);
      window.seen(1); // [ 1 ]
      window.data; // [ 1 ]

      Type Parameters

      • T

      Parameters

      Returns { seen: (value: T) => T[]; get data(): T[] }