Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

typeof array javascript

Array.isArray(arr)

// Examples
Array.isArray([1, 2, 3]);  // true
Array.isArray('foobar');   // false for strings
Array.isArray({foo: 123}); // false for objects
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #typeof #array #javascript
ADD COMMENT
Topic
Name
8+6 =