Type module
Sources
Items from Array can be imported/included and used via following ways.
/** * -------------------------------------------------------- * Import via main package: core.ts * Access items like: am4core.array.myVariable * am4core.array.myFunction() * -------------------------------------------------------- */ import * as am4core from "@amcharts/amcharts4"; /** * -------------------------------------------------------- * Import via: Array.ts * Access items like: $array.myVariable * $array.myFunction() * -------------------------------------------------------- */ import * as $array from "@amcharts/amcharts4/Array";
/** * -------------------------------------------------------- * Include via "core.js" * Access items like: am4core.array.myVariable * am4core.array.myFunction() * -------------------------------------------------------- */
Variables
Array does not have any variables.
Functions
any( array: ) |
Returns Calls If If |
---|---|
eachReverse( array: ) |
Returns Iterates through all items in array in reverse order and calls |
first( array: ) |
Returns Returns the first item of the array. |
has( array: ) |
Returns Returns |
indexOf( array: ) |
Returns Searches Returns -1 if not found. |
insert( array: ) |
Returns Inserts Caps |
insertIndex( array: ) |
Returns Inserts a value into array at specific index. |
keepIf( array: ) |
Returns |
last( array: ) |
Returns Returns the last item of the array. |
move( array: ) |
Returns Adds an If array already contains and item like this, it is removed before adding it again. Optionally |
pushAll( array: ) |
Returns Pushes all of the elements from |
remove( array: ) |
Returns Removes If there are multiple copies of |
removeIndex( array: ) |
Returns Removes a value from array at specific index. |
replace( array: ) |
Returns Removes If |
setIndex( array: ) |
Returns Removes all copies of |
shiftLeft( array: ) |
Returns Shifts an item at |
shuffle( array: ) |
Returns Iterates through all items in array and calls |
slice( array: ) |
Returns Returns a copy of |