Returns the given object if has the shape of a concrete subtype of CoatyObject, i.e. satisfies the concrete interface defined by the object's coreType property or the specified coreType parameter. Otherwise, undefined is returned.
any
a framework core type to check for (optional)
Returns a deep copy of the specified CoatyObject
according to JSON conventions. If the object passed in
is undefined
, undefined
is returned. Note that all (own and inherited) enumerable properties of the
given object are copied, not only the properties defined in the interface definition of the corresponding
core type. Properties are copied according to JSON data type conventions. In effect, this clone method
always yields the same result as JSON.parse(JSON.stringify(obj))
.
Note: by default the passed in argument is validated to conform to a framework core type.
This method throws a TypeError if the given argument is not a valid CoatyObject.
To skip this validation test, use the shouldSkipValidation
argument.
a CoatyObject to clone or undefined
Gets the core type for the given core object type, or
undefined
if the given object type doesn't represent a
core object.
an object type string
Gets an array of all defined framework core types.
Gets the object type for the given core type.
a core type
Determines whether the given type string defines a framework core object type.
a type string
Determines whether the given type string defines a framework core type.
a type string
Determines whether the specified value is an array of CoreType strings.
Determines wether the given parameter is a Date
any
Determines whether the given object has the shape of a concrete subtype of CoatyObject, i.e. satisfies either the concrete interface defined by the object's coreType property or the specified coreType parameter.
any
a framework core type to check for (optional)
Determines whether the specified value is an array of non-empty strings.
any
Generated using TypeDoc
Provides utility methods and constants for core object types.