![]() |
VOOZH | about |
The util.types.isInt32Array() method of the 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 Int32Array instance or not.
Syntax:
util.types.isInt32Array( value )
Parameters: This method accepts a single parameter value that 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 an instance of Int32Array otherwise returns false.
The below examples illustrate the use of util.types.isInt32Array() method in Node.js:
Example 1:
Output:
false true
Example 2:
Output:
true true true false
Reference: https://nodejs.org/api/util.html#util_util_types_isint32array_value