VOOZH about

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

⇱ Node.js util.types.isFloat32Array() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js util.types.isFloat32Array() Method

Last Updated : 28 Apr, 2025

The util.types.isFloat32Array() method is an inbuilt application programming interface of the util module which is used to type check for Float32Array in the node.js. 

Syntax:

util.types.isFloat32Array( value )

Parameters: This method accepts a single parameter as mentioned above and described below.

  • value: It is a required parameter of any datatype.

Return: This returns a boolean value, TRUE if the value is a Float32Array, FALSE otherwise. 

The below examples illustrate the use of util.types.isFloat32Array() method in Node.js: 

Example 1: 

Output:

false
false
true
false
false

Example 2: 

Output:

The passed value is a Float32Array.
The passed value is not a Float32Array

Note: The above program will compile and run by using the node filename.js command. 

Reference: https://nodejs.org/api/util.html#util_util_types_isfloat32array_value

Comment

Explore