MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / HasOwnProperty

Method HasOwnProperty

napi-inl.h:1708–1712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1706}
1707
1708inline MaybeOrValue<bool> Object::HasOwnProperty(napi_value key) const {
1709 bool result;
1710 napi_status status = napi_has_own_property(_env, _value, key, &result);
1711 NAPI_RETURN_OR_THROW_IF_FAILED(_env, status, result, bool);
1712}
1713
1714inline MaybeOrValue<bool> Object::HasOwnProperty(Value key) const {
1715 bool result;

Calls

no outgoing calls

Tested by

no test coverage detected