VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-util-types-issharedarraybuffer-method/

⇱ Node.js | util.types.isSharedArrayBuffer() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js | util.types.isSharedArrayBuffer() Method

Last Updated : 14 Feb, 2020
The util.types.isSharedArrayBuffer() method of util module is primarily designed to support the needs of Node.js own Internal APIs. It is used to check whether the passed instance in the method is a built-in SharedArrayBuffer instance or not. Syntax:
util.types.isSharedArrayBuffer( value )
Parameters: This method accepts a single parameter value which holds any value i.e instance of any module. Return value: This method returns a Boolean value i.e true if the passed value is instance of SharedArrayBuffer otherwise returns false. Below examples illustrate the use of util.types.isSharedArrayBuffer() method in Node.js: Example 1: Output:
true
false
false
Example 2: Output:
true
true
Reference: https://nodejs.org/api/util.html#util_util_types_issharedarraybuffer_value
Comment

Explore