• Adds an item to the beginning of the array

    Example

    let myArray = [1, 2, 3]
    prepend(myArray, 0); // myArray => [0, 1, 2, 3]

    Type Parameters

    • T

    Parameters

    • arr: T[]
    • value: T

    Returns number

Generated using TypeDoc