ownKeys(object): Generator<string | number | symbol, void, unknown>
Like Reflect.ownKeys but returns numbers as 'number' type instead
of 'string' type. Also please note that this method returns a generator
instead of an Array. Finally, the method will only return indices from 0 to
object.length when the object is an iterable with a length property
(such as an Array or NodeList)...
Parameters
object: object
Returns Generator<string | number | symbol, void, unknown>
Like
Reflect.ownKeys
but returns numbers as 'number' type instead of 'string' type. Also please note that this method returns a generator instead of an Array. Finally, the method will only return indices from 0 toobject.length
when the object is an iterable with alength
property (such as an Array or NodeList)...