How to check if an object or variable is an array, in JS?

October 26, 2018

To find out if an object or variable is an array, in Javascript, use Array.isArray(some_variable). It will return true or false.