pub fn has(target: &JsValue, property_key: &JsValue) -> Result<bool, JsValue>
The static Reflect.has() method works like the in operator as a function.
Reflect.has()
MDN documentation