Function endsWithOneOf

Returns true if str starts with one of the provided strings.

endsWithOneOf('cb', 'a', 'b'); // true
endsWithOneOf('cc', 'a', 'b'); // false
  • Parameters

    • str: string
    • strings: string[]

    Returns boolean