11 lines
266 B
TypeScript
Raw Permalink Normal View History

2024-11-05 10:07:40 +08:00
import { baseIndexOf } from './_baseIndexOf'
export function charsEndIndex(strSymbols: string[], chrSymbols: string[]) {
let index = strSymbols.length
while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
/* empty */
}
return index
}