4.17.11
3.10.1
2.4.2
1.3.1
_.toString(value)
Converts value
to a string. An empty string is returned for null
and undefined
values. The sign of -0
is preserved.
Since
4.0.0
Arguments
argument
value
type
*
description
The value to convert.
Returns
(array)
Example
_.toString(null);
// => ''
_.toString(-0);
// => '-0'
_.toString([1, 2, 3]);
// => '1,2,3'
_.toString(null);
// => ''
_.toString(-0);
// => '-0'
_.toString([1, 2, 3]);
// => '1,2,3'