Object
Type module
Sources
Items from Object can be imported/included and used via following ways.
/** * Import via main package * Access items like: am5.object.myVariable */import * as am5 from "@amcharts/amcharts5";
/** * Import via: Object.ts * Access items like: $object.myVariable */import * as $object from "@amcharts/amcharts5/Object";/** * Include via "index.js" * Access items like: am5.object.myVariable */Variables
Object does not have any variables.
Functions
copy(array:ArrayLike)Returns
ArrayReturns a shallow copy of the object.
Returns a copy of the
Dateobject.Returns a copy of the
Dateobject.each(array:ArrayLike,
fn: (value:A, index:number) =>void)Returns
voidIterates through all properties of the object calling
ffor each of them.eachContinue(array:ArrayLike,
fn: (value:A, index:number) =>boolean)Returns
voidIterates through all properties of the object calling
fnfor each of them.If return value of the function evaluates to
falsefurther iteration is cancelled.eachOrdered(object:Object,
fn: (key:Key, value:Object[""]) =>void,
ord: (a:Keyof, b:Keyof) =>number)Returns
voidOrders object properties using custom
ordfunction and iterates through them callingfnfor each of them.entries(object:O)Returns
ArrayReturns an array of object's own enumerable [key, value] pairs.
hasKey(object:Object,
key:Key)Returns
booleanChecks if
objecthas a specifickey.keys(object:O)Returns
ArrayReturns an array of object's own enumerable property names.
keysOrdered(object:Object,
order: (a:Keyof, b:Keyof) =>number)Returns
ArrayReturns an array of object's property names ordered using specific ordering function.
softCopyProperties(source:Object,
target:Object)Returns
ObjectCopies each property of
sourcethat is notnullorundefinedtotarget, wheretargethas no value for it yet.