Type module
Sources
Items from Array can be imported/included and used via following ways.
/** * -------------------------------------------------------- * Import via main package: core.ts * Access items like: am5.array.myVariable * am5.array.myFunction() * -------------------------------------------------------- */ import * as am5 from "@amcharts/amcharts5"; /** * -------------------------------------------------------- * Import via: Array.ts * Access items like: $array.myVariable * $array.myFunction() * -------------------------------------------------------- */ import * as $array from "@amcharts/amcharts5/Array";
/** * -------------------------------------------------------- * Include via "index.js" * E.g.: "https://cdn.amcharts.com/lib/5/index.js" * Access items like: am5.array.myVariable * am5.array.myFunction() * -------------------------------------------------------- */
Variables
Array does not have any variables.
Functions
add( array: ) |
Returns Adds |
---|---|
any( array: ) |
Returns Calls If If |
copy( array: ) |
Returns Returns a copy of the |
each( array: ) |
Returns Iterates through all items in array and calls |
eachContinue( array: ) |
Returns Iterates through all properties of the object calling If return value of the function evaluates to |
eachReverse( array: ) |
Returns Iterates through all items in array in reverse order and calls |
find( array: ) |
Returns Searches the array using custom function and returns item if found. Will call Otherwise returns |
findIndex( array: ) |
Returns Searches the array using custom function and returns index of the item if found. Will call Otherwise returns -1. |
findIndexReverse( array: ) |
Returns This is the same as |
findMap( array: ) |
Returns Searches the array using custom function and returns item if found. Will call Otherwise returns |
findReverse( array: ) |
Returns This is the same as |
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. |
map( array: ) |
Returns Calls |
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 |
pushOne( array: ) |
Returns Pushes |
remove( array: ) |
Returns Removes If there are multiple copies of |
removeFirst( array: ) |
Returns |
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 |
toArray( input: ) |
Returns Wraps |