@unikue/ts-lang-utils
    Preparing search index...

    Function substringAfterLast

    • Returns the substring after the last occurrence of the given separator (the separator is not returned)

      Parameters

      • Optionaltext: string | null

        The string to get a substring from

      • Optionalseparator: string | null

        The string to search for

      Returns string | null | undefined

      the substring after the last occurrence of the given separator

      David Hsing

      substringAfterLast("foo/bar/foo/bar", "/");    // 'bar'