Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js is of type array

Array.isArray([1, 2, 3]);  // true
Array.isArray({foo: 123}); // false
Array.isArray('foobar');   // false
Array.isArray(undefined);  // false
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #type #array
ADD COMMENT
Topic
Name
1+2 =