Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/toString

Index

References

Functions

References

Renames and re-exports toString

Functions

  • toString(val: any): string
  • Converts value to a string. An empty string is returned for null and undefined values.

    example

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

    Parameters

    • val: any

      The value to convert.

    Returns string

    Returns the converted string.

Generated using TypeDoc