Skip to content
napi-bindings

Search

Search pages, projects and the Node-API reference

Browse Node-APIshow

node_api_is_sharedarraybuffer

functionexperimentaljs_native_api.h

This API checks if the Object passed in is a SharedArrayBuffer.

Stability: 1 - Experimental

napi_status node_api_is_sharedarraybuffer(napi_env env, napi_value value, bool* result)
  • [in] env: The environment that the API is invoked under.
  • [in] value: The JavaScript value to check.
  • [out] result: Whether the given napi_value represents a SharedArrayBuffer.

Returns napi_ok if the API succeeded.

This API checks if the Object passed in is a SharedArrayBuffer.

View in the official Node.js documentation