bool hasProperty(
String property
)

Returns true if the JavaScript object contains the specified property either directly or though its prototype chain.

This is the equivalent of the in operator in JavaScript.

Source

/**
 * Returns `true` if the JavaScript object contains the specified property
 * either directly or though its prototype chain.
 *
 * This is the equivalent of the `in` operator in JavaScript.
 */
bool hasProperty(String property) native "JsObject_hasProperty";