
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 266 Articles for Node.js

105 Views
The util.types.isAnyArrayBuffer() checks whether the passed value is an ArrayBuffer or a SharedArrayBuffer instance. It returns True if the above condition holds, else False.Syntaxutil.types.isAnyArrayBuffer(value)ParametersIt takes a single parameter −value − This input parameter takes input for the required datatype and checks if it's an ArrayBuffer or SharedArrayBuffer instance.It returns True or False based upon the input value passed.Example 1Create a file with the name "isArrayBuffer.js" and copy the following code snippet. After creating the file, use the command "node isArrayBuffer.js" to run this code// util.types.isAnyArrayBuffer() Demo Example // Importing the util module const util = require('util'); // Printing ... Read More

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 returns True or False based upon the input value passed.Example 1Create a file with the name – "isFloat32Array.js" and copy the following code snippet. After creating the file, use the command "node isFloat32Array.js" to run this code.// util.types.isFloat32Array() Demo Example // Importing the util module const util = require('util'); ... Read More

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 returns True or False based upon the input value passed.Example 1Create a file with the name "isDate.js" and copy the following code snippet. After creating the file, use the command "node isDate.js" to run this code.// util.types.isDate() Demo Example // Importing the util module const util = require('util'); ... Read More

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 will specify the error number or the error code.The function returns the error name based upon the error code or error number passed in the err parameter.Some common system errors are - EACCES, EEXIST, EISDIR, ENOENT, ENOTDIR, ENOTEMPTY, etc. Browse this page to find the complete information about system error ... Read More

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 returns True or false based upon the input value passed.Example 1Create a file with the name "isFloat64Array.js" and copy the following code snippet. After creating the file, use the command "node isFloat64Array.js" to run this code.// util.types.isFloat64Array() Demo Example // Importing the util & assert module const util = ... Read More

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 not.It returns True or False based upon the input value passed.Example 1Create a file "isProxy.js" and copy the following code snippet. After creating the file, use the command "node isProxy.js" to run this code.// util.types.isProxy() Demo Example // Importing the util module const util = require('util'); // Defining ... Read More

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 checks if it is an ArrayBuffer or a typed array objectIt returns True or False based upon the input value passed.Example 1Create a file with the name "isArrayBufferView.js" and copy the following code snippet. After creating the file, use the command "node isArrayBufferView.js" to run this code.// util.types.isArrayBufferView() Demo Example ... Read More

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 returns True or False based upon the input value passed.Example 1Create a file with the name "isInt16Array.js" and copy the following code snippet. After creating the file, use the command "node isInt16Array.js" to run this code.// util.types.isInt16Array() Demo Example // Importing the util module const util = require('util'); ... Read More

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 or False based upon the input value passed.Example 1Create a file with the name "isAsyncFunction.js" and copy the following code snippet. After creating the file, use the command "node isAsyncFunction.js" to run this code.// util.types.isArgumentsObject() Demo Example // Importing the util module const util = require('util'); // Passing ... Read More

896 Views
The v8.getHeapStatistics() method returns the statistics about a heap. The getHeapStatistics() method is a part of the v8 module that returns the details about the heap and size of the v8. The getHeapSpaceStatistics() gives stats based upon the spaces in a system, whereas the getHeapStatistics() method gives stats about the whole system.Syntaxv8.getHeapStatistics()ParametersSince it returns the space details/statistics about V8, it does not require any special input parameters. However, the value returned contains the following properties −total_heap_size − This field will return the total heap space size.total_heap_size_executable − This field will return the total heap size that is available for execution.total_physical_size ... Read More