2 * Used by `_.trim` and `_.trimLeft` to get the index of the first character
3 * of `string` that is not found in `chars`.
6 * @param {string} string The string to inspect.
7 * @param {string} chars The characters to find.
8 * @returns {number} Returns the index of the first character not found in `chars`.
10 function charsLeftIndex(string, chars) {
12 length = string.length;
14 while (++index < length && chars.indexOf(string.charAt(index)) > -1) {}
18 module.exports = charsLeftIndex;