Question : if typeof equals array javascript
Answered by : bad-bird-6ogsi6dx25ex
obj instanceof Array
Source : https://stackoverflow.com/questions/1058427/how-to-detect-if-a-variable-is-an-array | Last Update : Sun, 24 Jan 21
Question : if typeof equals array javascript
Answered by : bad-bird-6ogsi6dx25ex
typeof obj.length === 'number'
Source : https://stackoverflow.com/questions/1058427/how-to-detect-if-a-variable-is-an-array | Last Update : Sun, 24 Jan 21
Question : if typeof equals array javascript
Answered by : bad-bird-6ogsi6dx25ex
Object.prototype.toString.call(obj) === '[object Array]'
Source : https://stackoverflow.com/questions/1058427/how-to-detect-if-a-variable-is-an-array | Last Update : Sun, 24 Jan 21