toString

Lang
since 4.0.0

Arguments

  • * The value to convert.

Returns

string the converted string.

Converts value to a string. An empty string is returned for null and undefined values. The sign of -0 is preserved.

Example of Lodash _.toString

_.toString(null);
// => ''

_.toString(-0);
// => '-0'

_.toString([1, 2, 3]);
// => '1,2,3'