• 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 any

    Size of object.