Ordered, zero-indexed lists.
- create with
[]orArray.of(...) - access by index
arr[0];.lengthgives size - add/remove at end:
push/pop; at start:unshift/shift - arrays are objects —
Array.isArray(x)to test
See examples/.
Build a stack (push/pop) and a queue (push/shift).