• returns the last element of path. Trailing slashes are removed before extracting the last element.

    Returns

    If the path is empty, Base returns ".". If the path consists entirely of slashes, Base returns "/".

    Parameters

    • path: string

    Returns string

Generated using TypeDoc