Function intersperse

  • Place a separator between every value.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • v: T

      separator

    Returns T[]

    [x[0], v, x[1], v, ..., x[|x|-1]]

Generated using TypeDoc