🚂
💨
Welcome to the playground! Try any operation.
Your Array
[
1
[0]2
[1]3
[2]4
[3]5
[4]]
length: 5
const arr = [1, 2, 3, 4, 5];Add/Remove
Search
Cut/Insert
Transform
Quick Reference
push(val) - Add to end
pop() - Remove from end
unshift(val) - Add to start
shift() - Remove from start
indexOf(val) - Find position
includes(val) - Check if exists
find(fn) - Find first match
filter(fn) - Keep matches