JavaScript Array values() Method
The Array.values() method is a built-in JavaScript function that returns a new array iterator object. This iterator contains the values of each element in the array in their original order. Syntax Parameters The Array.values() method does not take any parameters. Return Value The method returns a new Array Iterator object containing the values of the…