v7.3.0
SupportExamplesFree Trial

ObjectHelper

A static utility class for deep cloning, comparison, property copying, and other common object operations. It extends the internal Objects class and re-exports its methods for public use.

const copy = ObjectHelper.clone(original);
ObjectHelper.isEqual(a, b);        // true if deeply equal
ObjectHelper.assign(dest, src);    // like Object.assign but includes inherited props

Useful functions

Function Description
assign Copy properties from sources to dest
clone Create a deep copy of a value
isEqual Test two values for deep equality
isEmpty Check whether an object is empty

See also

No results

Functions

Functions are methods available for calling on the class
  • fork( )
    private
    static

    Used by the Base class to make deep copies of defaultConfig blocks

    Source path

    Core/helper/ObjectHelper.js

    Contents