source: node_modules/es-toolkit/dist/compat/util/toString.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: 546 bytes
Line 
1/**
2 * Converts `value` to a string.
3 *
4 * An empty string is returned for `null` and `undefined` values.
5 * The sign of `-0` is preserved.
6 *
7 * @param {any} value - The value to convert.
8 * @returns {string} Returns the converted string.
9 *
10 * @example
11 * toString(null) // returns ''
12 * toString(undefined) // returns ''
13 * toString(-0) // returns '-0'
14 * toString([1, 2, -0]) // returns '1,2,-0'
15 * toString([Symbol('a'), Symbol('b')]) // returns 'Symbol(a),Symbol(b)'
16 */
17declare function toString(value: any): string;
18
19export { toString };
Note: See TracBrowser for help on using the repository browser.