ixfx
    Preparing search index...

    Function interleave

    • Returns an interleaving of two or more arrays. All arrays must be the same length.

      import { Arrays } from 'https://unpkg.com/ixfx/dist/data.js';

      const a = [`a`, `b`, `c`];
      const b = [`1`, `2`, `3`];
      const c = Arrays.interleave(a, b);
      // Yields:
      // [`a`, `1`, `b`, `2`, `c`, `3`]

      Type Parameters

      • V

      Parameters

      • ...arrays: readonly (readonly V[])[] | V[][]

      Returns V[]