• Converts value to a string if it's not one. An empty string is returned for null and undefined values. The sign of -0 is preserved.

    Parameters

    • value: any

      The value to process.

    Returns string

    Returns the string.

    Example

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

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

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