Options
All
  • Public
  • Public/Protected
  • All
Menu

Module toString

Index

References

Functions Lang

References

Renames and re-exports toString

Lang Functions

  • toString(value: any): string
  • 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

    example
    toString(null)
    // => ''

    toString(-0)
    // => '-0'

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

    Parameters

    • value: any

      The value to convert.

    Returns string

    Returns the converted string.