• Returns the first item of the array

    Example

    first([1, 2, 3]); // 1
    

    Type Parameters

    • T

    Parameters

    • array: [T, ...unknown[]]

    Returns T

Generated using TypeDoc