-
Notifications
You must be signed in to change notification settings - Fork 1
Obj.API
-
Mutates the first object by deeply applying the properties from the second object onto the properties of the first object only if the properties already exist on the first object. This overwrites existing properties but ignores new ones. If the desire isn't to mutate the first object, use clone(first).
Name Type Description firstobject The first and mutable object
secondobject The second object
The first object with the second objects properties applied to it
- Type
- object
-
Perform a deep clone of two objects
Name Type Description objectToCloneobject the object to be cloned
A clone of the objectToClone
- Type
- object
-
Returns true if the specified object is of type typeAssertion or it's constructor name is of the type specified by the typeAssertion
Name Type Description object* Any value with a prototype
typeAssertionString A string representing the name of the expected type
True|False based on the truthiness of the typeAssertion
- Type
- boolean
-
Mutates the first object by deeply merging the properties of the second object into the first object, overwriting the properties already set on the first specifically passing properties by reference. If the desire isn't to mutate the first object, use clone(first).
Name Type Description firstobject the first and mutable object
secondobject the second object
The first object with the properties from the second object merged into the properties of the first
- Type
- object