Urara-Blog/node_modules/.pnpm-store/v3/files/9f/52768d481ec4ec39283e936e9914b3167e15bbd0229722cf18c3418ce17a4eec93559fae8464ca79ddf410db568e7de44ec2c7330d9b23abcfeed97e22ccbc
2022-08-14 01:14:53 +08:00

20 lines
636 B
Text

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