Answers for "nodejs check if array"

2

javascript determine array type

var data = ['a', 'b', 'c']
var isArray = Array.isArray(data)
console.log(isArray)
Posted by: Guest on May-04-2020
5

javascript typeof array

Array.isArray(arr)
Posted by: Guest on October-08-2020
2

how to check if something is array javascript

function isArray(value) {
    return Object.prototype.toString.call(value) === "[object Array]";
}
Posted by: Guest on May-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language