check if var is array js

JavaScript
Array.isArray(variableName)
Source

Also in JavaScript: