Returns true if str starts with one of the provided strings.
str
strings
startsWithOneOf('ab', 'a', 'c'); // truestartsWithOneOf('cc', 'a', 'b'); // false Copy
startsWithOneOf('ab', 'a', 'c'); // truestartsWithOneOf('cc', 'a', 'b'); // false
Returns true if
str
starts with one of the providedstrings
.Usage