Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if array

let variable1 = [2, 3]
let variable2 = "test";

variable1.constructor === Array; // true
variable2.constructor === Array; // false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #check #array
ADD COMMENT
Topic
Name
9+4 =