Open In App

JavaScript typedArray.keys() Method

Last Updated : 10 Feb, 2023
Summarize
Comments
Improve
Suggest changes
Share
Like Article
Like
Report

The typedArray.keys() is an inbuilt function in JavaScript which is used to return a new array iterator containing the keys for each index of the elements of the given typedArray. 

Syntax:

typedArray.keys()

Parameter: This function does not accept anything as parameter. 

Return value: It returns a new array iterator object containing the keys for each index of the elements of the given typedArray. 

Example: JavaScript code to show the working of this function.

Output:

0
1
2
3

Next Article

Similar Reads