@yookue/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: null | string

        the string to get a substring from

      • Optionalseparator: null | string

        the string to search for

      Returns undefined | null | string

      the substring after the last occurrence of the given separator

      David Hsing

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