pub fn own_keys(target: &JsValue) -> Result<Array, JsValue>
The static Reflect.ownKeys() method returns an array of the target object’s own property keys.
Reflect.ownKeys()
MDN documentation