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

    Function substringBeforeLastAny

    • Returns the substring before the last occurrence of any the given separators (the separator is not returned)

      Parameters

      • Optionaltext: string | null

        The string to get a substring from

      • Optionalseparators: (string | null | undefined)[]

        The strings to search for

      Returns string | null | undefined

      the substring before the last occurrence of any the given separators

      David Hsing

      substringBeforeLastAny("foo/bar/foo/bar", ["/", ";"]);    // 'foo/bar/foo'