- column
- empty
- last
- exists
- exists
- get
- isEmpty
- left
- move
- remove
- right
- shuffle
- start
- sum
- down
- first
- last
- up - Alias of left
Return the values from a single column
[[1,2,3,4,5],[6,7,8,9,0],[1,3,4,6,9]].column(0)// returns [1,6,1]Truncate Array
vara=[1,2,3,4,5,6,7,8,9,0];a.empty();console.log(a);// returns []IMPORTANT: Alias of last
Get the last item
[1,2,3,4,5,6,7,8,9,0].end()// returns 0Check if item exists by index
[1,2,3,4,5,6,7,8,9,0].exists(0)// returns true[1,2,3,4,5,6,7,8,9,0].exists(-1)// returns false[1,2,3,4,5,6,7,8,9,0].exists(10)// returns false[1,2,3,4,5,6,7,8,9,0].exists(9)// returns trueGet a item by index. If it not exists, return you own default value
[1,2,3,4,5,6,7,8,9,0].get(0)// returns 1[1,2,3,4,5,6,7,8,9,0].get(-1,false)// returns false[1,2,3,4,5,6,7,8,9,0].get(-1)// returns undefinedCheck if a empty Array
vara=[];varb=[1,2,3,4,5,6,7,8,9,0];a.isEmpty()// returns trueb.isEmpty()// returns falseMove item to left position by index
[1,2,3,4,5,6,7,8,9,0].left(0);// returns [1,2,3,4,5,6,7,8,9,0][1,2,3,4,5,6,7,8,9,0].left(9);// returns [1,2,3,4,5,6,7,9,8,0]Move a item by index position to a new index position
[0,1,2,3,4,5,6,7,8,9].move(0,9);// returns [1,2,3,4,5,6,7,8,9,0]Remove a item by index
[1,2,3,4,5,6,7,8,9,0].remove(0);// returns true// produces// [2,3,4,5,6,7,8,9,0]Move item to right position by index
[1,2,3,4,5,6,7,8,9,0].right(0);// returns [1,2,3,4,5,6,7,8,9,0][1,2,3,4,5,6,7,8,9,0].right(9);// returns [1,2,3,4,5,6,7,9,8,0]Shuffle array
[1,2,3,4,5,6,7,8,9,0].shuffle();IMPORTANT: Alias of first
Get the first item
[1,2,3,4,5].start()// returns 1Calculate the sum of values
[1,2,3,4].sum()// returns 10IMPORTANT: Alias of right
Move item to right position by index
[1,2,3,4,5,6,7,8,9,0].down(0);// returns [1,2,3,4,5,6,7,8,9,0][1,2,3,4,5,6,7,8,9,0].down(9);// returns [1,2,3,4,5,6,7,9,8,0]Get the first item
[1,2,3,4,5,6,7,8,9,0].first()// returns 1Get the last item
[1,2,3,4,5,6,7,8,9,0].last()// returns 0IMPORTANT: Alias of left
Move item to up position by index
[1,2,3,4,5,6,7,8,9,0].up(0);// returns [1,2,3,4,5,6,7,8,9,0][1,2,3,4,5,6,7,8,9,0].up(9);// returns [1,2,3,4,5,6,7,9,8,0]