@pengzhanbo/utils - v3.4.1
    Preparing search index...

    Function toString

    • Get the string representation of a value

      获取值的字符串表示

      Parameters

      • s: unknown

        The value to get the string representation for. 要获取字符串表示的值

      Returns string

      The string representation of the value. 值的字符串表示

      toString(42) // => '[object Number]'
      toString('hello') // => '[object String]'
      toString(undefined) // => '[object Undefined]'
      toString(null) // => '[object Null]'
      toString({}) // => '[object Object]'