_.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
value
(*): The value to convert.
Returns
(string): Returns the converted string.
Example
_.toString(null);// => ''_.toString(-0);// => '-0'_.toString([1, 2, 3]);// => '1,2,3'
当前内容版权归 lodash.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 lodash.com .