Module: utils/toObject

Methods

(static) toObject(any) → {object}

Converts an arbitrary instance into a plain object
that can be persisted.
Common use is to make Error instances
storable in ReactiveDict etc.

Parameters:
Name Type Description
any any
Source:
Returns:
Type
object