Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check variable is array or not in javascript

// npm i is-js-array 
const { isJSArray } = require("is-js-array");
isJSArray([]); // true
isJSArray({}); // false
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #check #variable #array #javascript
ADD COMMENT
Topic
Name
6+2 =