Skip to main content

has_property

Function has_property 

Source
pub fn has_property(obj: &Value, key: &str) -> Result<bool, String>
Expand description

key in obj respecting the prototype chain. Reports a Result because a Proxy’s has trap is user code and may throw.