1 var baseIndexOf = require('./_baseIndexOf');
4 * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
5 * that is not found in the character symbols.
8 * @param {Array} strSymbols The string symbols to inspect.
9 * @param {Array} chrSymbols The character symbols to find.
10 * @returns {number} Returns the index of the first unmatched string symbol.
12 function charsStartIndex(strSymbols, chrSymbols) {
14 length = strSymbols.length;
16 while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
20 module.exports = charsStartIndex;