napi_instanceof
functionv1js_native_api.hThis API represents invoking the instanceof Operator on the object as defined in Section instanceof operator of the ECMAScript Language Specification.
napi_status napi_instanceof(napi_env env,
napi_value object,
napi_value constructor,
bool* result)
[in] env: The environment that the API is invoked under.[in] object: The JavaScript value to check.[in] constructor: The JavaScript function object of the constructor function to check against.[out] result: Boolean that is set to true ifobject instanceof constructoris true.
Returns napi_ok if the API succeeded.
This API represents invoking the instanceof Operator on the object as
defined in Section instanceof operator of the ECMAScript Language Specification.