source: node_modules/es-toolkit/dist/compat/string/trimStart.d.ts@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 945 bytes
Line 
1/**
2 * Removes leading whitespace or specified characters from a string.
3 *
4 * @param {string} string - The string to trim.
5 * @param {string} chars - The characters to trim from the start of the string.
6 * @returns {string} Returns the trimmed string.
7 *
8 * @example
9 * trimStart(' abc ');
10 * // => 'abc '
11 *
12 * trimStart('-_-abc-_-', '_-');
13 * // => 'abc-_-'
14 */
15declare function trimStart(string?: string, chars?: string): string;
16/**
17 * Removes leading whitespace or specified characters from a string.
18 *
19 * @param {string} string - The string to trim.
20 * @param {string | number} index - The index parameter (used with guard).
21 * @param {object} guard - Enables use as an iteratee for methods like `map`.
22 * @returns {string} Returns the trimmed string.
23 *
24 * @example
25 * trimStart(' abc ', 0, {});
26 * // => 'abc '
27 */
28declare function trimStart(string: string, index: string | number, guard: object): string;
29
30export { trimStart };
Note: See TracBrowser for help on using the repository browser.