JavaScript Array entries()
JavaScript Array entries()
The entries() method is used to return an Array Iterator object with key/value pairs. It does not change the original array.
Syntax:-
Its syntax is:- array.entries()
Return:-
Its return is:- An iterable array with key/value pairs.