deep-trails - v3.0.0-beta.3
    Preparing search index...

    Function toSimpleString

    • Creates a simple, readable string for any value, similar to console.log.

      Parameters

      • value: unknown

        Value to stringify.

      Returns string

      String representation of the value.

      Uses caching, and is faster with primitives and functions.

      toSimpleString(Set)       // "[NativeFunction: Set]"
      toSimpleString([ 2, 4 ]) // "Array(2) [ ... ]"
      toSimpleString(/abc/i) // "/abc/i"
      toSimpleString("abc") // '"abc"'

      3.0.0-beta.0