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

Method Has

napi-inl.h:1686–1690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1684}
1685
1686inline MaybeOrValue<bool> Object::Has(napi_value key) const {
1687 bool result;
1688 napi_status status = napi_has_property(_env, _value, key, &result);
1689 NAPI_RETURN_OR_THROW_IF_FAILED(_env, status, result, bool);
1690}
1691
1692inline MaybeOrValue<bool> Object::Has(Value key) const {
1693 bool result;

Callers 7

TestCallFunction · 0.80
TestCallFunction · 0.80
HasPropertyWithNapiValueFunction · 0.80
HasPropertyWithUint32Function · 0.80

Calls

no outgoing calls

Tested by 2

TestCallFunction · 0.64
TestCallFunction · 0.64