Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript is object array

/* The Array.isArray() method indicates whether 
the passed value is an array. */

let example1 = [1, 2, 3];
console.log(Array.isArray(example1)); // → true

let example2 = {a: 1, b: 2,c: 3};
console.log(Array.isArray(example2)); // → false
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #object #array
ADD COMMENT
Topic
Name
6+7 =