• It will return the last element of the value.

    Type Parameters

    • Value extends string | unknown[]

    Parameters

    Returns LastT<Value>

    Since

    1.0.0

    Example

    last([0, 1, 2, 3, 4, 5]);
    // => 5

    Example

    last("012345");
    // => "5"