Answers for "how to check data type is array or not in javascript"

1

is array a data type in javascript

//An array is an object. An object is a data type but an array in of itself is not a data type. The set of types on JavaScript consist of primitive values and objects. Primitive values - Boolean type. Null type. Undefined type. Number type. BigInt type. String type. Symbol type. Objects (collections of properties)//
Posted by: Guest on November-18-2021
0

check variable is array or not in javascript

// npm i is-js-array 
const { isJSArray } = require("is-js-array");
isJSArray([]); // true
isJSArray({}); // false
Posted by: Guest on August-31-2021

Code answers related to "how to check data type is array or not in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language