.unshift()

Term side of the Card
Topic: Array
Unit title: .unshift()
Categories: Method
Explanation side of the Card

Explanation: The method that adds one or more elements to the beginning of an array. It returns the new length of the array after the elements have been added, shifting existing elements to the right.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: