Function objectSize

    • Safely returns an objects size. Note for String objects Unicode is not taken into consideration.

      Parameters

      • object: any

        Any value, but size returned for object / Map / Set / arrays / strings.

      Returns number

      Size of object.