Creates a new object that is a shallow or deep copy of the current instance.
Must call Format.Config.addUtilsToGlobals to be defined.
The type of the cloned object.
The object to clone.
A flag specifying whether the result should be a deep copy or not.
Recursivelly merge the contents of two or more objects together into the first object.
Must call Format.Config.addUtilsToGlobals to be defined.
The type of the object to merge into.
An object that will receive the new properties.
An object containing additional properties to merge in.
A list of arguments that consists of more objects that contain additional properties to merge in.
Merge the contents of two or more objects together into the first object.
Must call Format.Config.addUtilsToGlobals to be defined.
The type of the object to merge into.
An object that will receive the new properties.
An object containing additional properties to merge in.
A list of arguments that consists of more objects that contain additional properties to merge in.
Creates a new data object that is a deep data copy of the current instance.
Non-data property values (functions or undefined) are NOT copied. In arrays any non-copy value is left as null
so as to preserve the original indexing.
Must call Format.Config.addUtilsToGlobals to be defined.
The type of the cloned object.
The data object to clone.
Returns the actual type of an object (unlike typeof
), see Utils.Types.
Must call Format.Config.addUtilsToGlobals to be defined.
The object to resolve for its type.
Returns true
if an object is empty (contains no enumerable properties).
Must call Format.Config.addUtilsToGlobals to be defined.
The object to test.
Returns true
if an object is a pure object instance.
Must call Format.Config.addUtilsToGlobals to be defined.
The object to test.
Returns true
if an object's type matches the given type argument.
Must call Format.Config.addUtilsToGlobals to be defined.
A string indicating the expected type of the object, i.e. "Array"
, "RegExp"
, etc.
The object to check for matching type.
Maps the given object's values as keys with their keys as values and returns the extended object.
Throws an error if the operation results in key duplication or keys with 'undefined' or 'null' values.
Must call Format.Config.addUtilsToGlobals to be defined.
The type of object to update.
The object to fill with the mapped unique values as keys.
A new object with all of the original and inverted properties.
Removes all properties with null
, undefined
or ""
values.
Must call Format.Config.addUtilsToGlobals to be defined.
The type of the object to remove from.
The object to remove from.
Optional flag specifying whether the removal should be recursive.
The same object instance without null
, undefined
or ""
elements.
Removes all properties with falsy values (null
, undefined
, ""
or 0
).
Must call Format.Config.addUtilsToGlobals to be defined.
The type of the object to remove from.
The object to remove from.
Optional flag specifying whether the removal should be recursive.
The same object instance without falsy elements.
Removes all properties with null
or undefined
values.
Must call Format.Config.addUtilsToGlobals to be defined.
The type of the object to remove from.
The object to remove from.
Optional flag specifying whether the removal should be recursive.
The same object instance without null
or undefined
elements.
Generated using TypeDoc
Extends the built-in javascript
Object
static API.The Format.Config.addUtilsToGlobals method must be called in order to access the definitions.