.slice()

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

Explanation: The method that returns a shallow copy of a portion of an array or the entire array, from the start index to the end index (not included). It creates a new array with the selected elements.

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: