Function toStringAbbreviate

Uses JSON.toString() on source, but abbreviates result.

  • Parameters

    • source: any

      Object to stringify

    • maxLength: number = 20

      Default 20

    Returns string