@newdash/newdash
Version:
javascript/typescript utility library
22 lines (21 loc) • 494 B
TypeScript
/**
* Removes leading whitespace or specified characters from `string`.
*
* @since 5.6.0
* @category String
* @param str The string to trim.
* @param chars The characters to trim.
* @returns Returns the trimmed string.
* @see [[trim]],[[trimEnd]]
* @example
*
* ```js
* trimStart(' abc ')
* // => 'abc '
*
* trimStart('-_-abc-_-', '_-')
* // => 'abc-_-'
* ```
*/
export declare function trimStart(str: string, chars: string, guard?: any): string;
export default trimStart;