Function splitByParity

  • Splits an array in two parts: one with even indices and the other with odd indices.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to split.

    Returns ParitySplit<T>

Generated using TypeDoc