tl;dr
How to use the built-in
Laid-back programming + relaxing photography
Array.isArray([])
checks for an array in JavaScript and returns true
or false
Array.isArray()
method, a well-supported ES5 feature, to check for the presence of an array in JavaScript.Laid-back programming + relaxing photography