Appends element to array

  • Type Parameters

    • T

    Parameters

    • x: T

      Element to append

    • xs: T[]

      Array to append to

    Returns T[]

    New array with element appended