Mayank Agarwal has Published 373 Articles

Node.js – util.types.isFloat32Array() Method

Mayank Agarwal

Mayank Agarwal

Updated on 18-Aug-2021 08:51:07

95 Views

The util.types.isFloat32Array() method checks whether the passed value is a builtin Float32Array instance or not. If the above condition is satisfied, it returns True, else False.Syntaxutil.types.isFloat32Array(value)ParametersIt takes a single parameter −value − This input value takes input for the required parameter and checks if it's a Float32-Array instance or not.It ... Read More

Node.js – util.types.isDate() Method

Mayank Agarwal

Mayank Agarwal

Updated on 18-Aug-2021 08:45:58

628 Views

The util.types.isDate() method checks whether the passed value is a built-in Date instance or not. If the above condition is satisfied, it returns True, else False.Syntaxutil.types.isDate(value)ParametersIt takes a single parameter −value − This input value takes input for the required parameter and checks if it's a Date instance or not.It ... Read More

Node.js – util.getSystemErrorName() Method

Mayank Agarwal

Mayank Agarwal

Updated on 18-Aug-2021 08:40:25

107 Views

The util.getSystemErrorName() method is used for returning the string name of the numeric error code that is returned from the Node.js API. There is a mapping between the error codes and error names which is platform-dependent.Syntaxutil.getSystemErrorName(err)ParametersIt takes a single parameter −err −This parameter takes input as a numeric value that ... Read More

Node.js – util.types.isFloat64Array() Method

Mayank Agarwal

Mayank Agarwal

Updated on 18-Aug-2021 08:37:02

77 Views

The util.types.isFloat64Array() method checks whether the passed value is a builtin Float64Array instance or not. It returns True if the above condition holds, else False.Syntaxutil.types.isFloat64Array(value)ParametersIt takes only one parameter −value − This input value takes input for the required parameter and checks if it is a Float64Array instance or not.It ... Read More

Node.js – util.types.isProxy() Method

Mayank Agarwal

Mayank Agarwal

Updated on 18-Aug-2021 08:33:22

154 Views

The util.types.isProxy() method checks whether the passed value is a built-in Proxy instance or not. If the above condition is satisfied, it returns True, else False.Syntaxutil.types.isProxy(value)ParametersIt takes only one parameter −value − This input value takes input for the required parameter and checks if it is a Proxy instance or ... Read More

Node.js – util.types.isArrayBufferView() Method

Mayank Agarwal

Mayank Agarwal

Updated on 18-Aug-2021 08:31:45

99 Views

The util.types.isArrayBufferView() checks whether the passed value is an instance of the ArrayBuffer views, or typed array objects like DataView. This method returns True if the above conditions are satisfied, else it returns False.Syntaxutil.types.isArrayBufferView(value)ParametersIt takes only one parameter −value − This input parameter takes input for the required datatype and ... Read More

Node.js – util.types.isInt16Array() Method

Mayank Agarwal

Mayank Agarwal

Updated on 18-Aug-2021 08:30:17

114 Views

The util.types.isInt16Array() method checks whether the passed value is a built-in Int16Array instance or not. If the above condition is satisfied, it returns True, else False.Syntaxutil.types.isInt16Array(value)ParametersIt takes only one parameter −value − This input value takes input for the required parameter and checks if it's an Int16Array instance or not.It ... Read More

Node.js – util.types.isAsyncFunction() Method

Mayank Agarwal

Mayank Agarwal

Updated on 18-Aug-2021 08:28:54

147 Views

The util.types.isAsyncFunction() checks whether the passed value is an async function or not. If the above condition holds, it returns True, else False.Syntaxutil.types.isAsyncFunction(value)ParametersIt takes only one parameter −value − This input value takes input for the required parameter and checks if it is an async function or not.It returns True ... Read More

Node.js – util.promisify() Method

Mayank Agarwal

Mayank Agarwal

Updated on 18-Aug-2021 08:24:38

5K+ Views

The util.promisify() method basically takes a function as an input that follows the common Node.js callback style, i.e., with a (err, value) and returns a version of the same that returns a promise instead of a callback.Syntaxutil.promisify(original)ParametersIt takes only one parameter −original −This parameter takes an input for the function ... Read More

Node.js – Retrieving file character encoding

Mayank Agarwal

Mayank Agarwal

Updated on 17-Aug-2021 12:27:32

997 Views

A computer system works upon bits. In the same way, a computer reads files into binary representation which is why we need to convert text characters into binary data. Most popular character encoding types types are: ASCII and Unicode. Unicode has two further types: utf8 and utf16.SyntaxdetectCharacterEncoding(filePath)Setting Up the Environment ... Read More

Advertisements