-
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 first
object The first and mutable object
second
object 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 objectToClone
object 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
typeAssertion
String 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 first
object the first and mutable object
second
object the second object
The first object with the properties from the second object merged into the properties of the first
- Type
- object