EASYAIuniappNewUI/node_modules/@tuniao/tnui-vue3-uniapp/libs/lodash/_charStartIndex.ts
2025-02-08 18:50:38 +08:00

15 lines
309 B
TypeScript

import { baseIndexOf } from './_baseIndexOf'
export function charsStartIndex(strSymbols: string[], chrSymbols: string[]) {
let index = -1
const length = strSymbols.length
while (
++index < length &&
baseIndexOf(chrSymbols, strSymbols[index], 0) > -1
) {
/* empty */
}
return index
}