Home > @infiniteobjects/core-library-web > Obj
Utilities to deal with objects.
Signature:
export declare class Obj
| Method | Modifiers | Description |
|---|---|---|
| clone(object, depth) | static |
Return a deep copy of the specified object. |
| diff(object1, object2, depth) | static |
<p>Returns an object containing all elements that differ between two objects.</p><p>It works best when object2 originated by deep copying object1, then changes were made to object2, and you want an object that would give you the changes made to object1 which resulted in object2.</p> |
| equals(object1, object2, depth) | static |
Deeply Checks if the given objects are the same |
| merge(object1, object2, depth) | static |
Creates a new object by deeply copying the properties of object2 in object1. |