UNPKG

wat

Version:

Community-controlled cheat sheets for every coder.

11 lines (7 loc) 176 B
## .unshift([item[, itemN...]]) Inserts new elements at the start of an array ```js let arr = [1, 2, 3, 4, 5]; arr.unshift(0); // arr: [0, 1, 2, 3, 4, 5] ```