Type module
Sources
Items from Object can be imported/included and used via following ways.
/** * -------------------------------------------------------- * Import via main package: core.ts * Access items like: am4core.object.myVariable * am4core.object.myFunction() * -------------------------------------------------------- */ import * as am4core from "@amcharts/amcharts4"; /** * -------------------------------------------------------- * Import via: Object.ts * Access items like: $object.myVariable * $object.myFunction() * -------------------------------------------------------- */ import * as $object from "@amcharts/amcharts4/Object";
/** * -------------------------------------------------------- * Include via "core.js" * Access items like: am4core.object.myVariable * am4core.object.myFunction() * -------------------------------------------------------- */
Variables
Object does not have any variables.
Functions
clone( object: ) |
Returns Returns object clone. |
---|---|
copyAllProperties( from: ) |
Returns Copies all properties from one object to another. |
copyProperties( source: ) |
Returns Copies all properties of one object to the other, omitting undefined. @todo Maybe consolidate with utils.copy? |
eachOrdered( object: ) |
Returns Orders object properties using custom |
entries( object: ) |
Returns Returns an iterator for all entries in object. Can be used to safely iterate through all properties of the object. |
forceCopyProperties( source: ) |
Returns Copies a list of properties from one object to another. Will copy empty properties. |
getKey( object: ) |
Returns Returns value of the specific |
hasKey( object: ) |
Returns Checks if |
keys( object: ) |
Returns Returns an array of object's property names. |
keysOrdered( object: ) |
Returns Returns an array of object's property names ordered using specific ordering function. |
merge( object1: ) |
Returns Merges two objects and returns a new object that contains properties from both source objects. |
softCopyProperties( source: ) |
Returns Copies all properties of one object to the other, omitting undefined, but only if property in target object doesn't have a value set. @todo Maybe consolidate with utils.copy? |