@newdash/newdash
Version:
javascript/typescript utility library
12 lines (11 loc) • 457 B
TypeScript
export default charsStartIndex;
/**
* 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.
*/
declare function charsStartIndex(strSymbols: any[], chrSymbols: any[]): number;