@newdash/newdash
Version:
javascript/typescript utility library
12 lines (11 loc) • 449 B
TypeScript
export default charsEndIndex;
/**
* Used by `trim` and `trimEnd` to get the index of the last 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 last unmatched string symbol.
*/
declare function charsEndIndex(strSymbols: any[], chrSymbols: any[]): number;