UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

24 lines (23 loc) 471 B
/** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @since 5.5.0 * @category Lang * @param value The value to convert. * @returns Returns the converted string. * @example * * ```js * toString(null) * // => '' * * toString(-0) * // => '-0' * * toString([1, 2, 3]) * // => '1,2,3' * ``` */ export declare function toString(value: any): string; export default toString;