
array.keys() – Returns a new Array Iterator that contains the keys for each index in the array.
๐ Syntax
iterator = array.keys();
๐งช Example
[...['x','y'].keys()]; // [0,1]
array.keys() – Returns a new Array Iterator that contains the keys for each index in the array.
iterator = array.keys();
[...['x','y'].keys()]; // [0,1]
Comments
Post a Comment