typeof js array of strings code example
Example 1: check data type in javascript
typeof("string"); //string
typeof(123); //number
Example 2: javascript typeof array
Array.isArray(obj)
typeof("string"); //string
typeof(123); //number
Array.isArray(obj)