Reflect.ownKeys() JavaScript JS
The JavaScript Reflect.ownKeys() method gives an array whose values represent the keys of the properties of an object. It includes only the object’s direct properties. Syntax: Reflect.ownKeys(target) Parameters: target: It represents the object from which to get the own keys. Return: It returns an array of the target object’s own property keys. Note: It throws … Read more