verb
- to add an element to the beginning of an array or list
Usage: programming; technical
Examples
- The unshift() method adds new elements to the start of an array.
- You can unshift multiple values at once to the beginning of the list.
- After calling unshift, the array length increased by one.
- The programmer used unshift to insert the header data first.
- Unshift returns the new length of the modified array.