how to check if variable is array in js

JavaScript
Array.isArray(variableName)
Source

Also in JavaScript: