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 www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #check #variable #array #javascript
ADD COMMENT
Topic
Name
9+8 =