How do you check if a value is an object in JavaScript?
Array.isArray
function isObject(o) { return o !== null && typeof o === 'object' && Array.isArray(o) === false; }
Just surprised how many upvotes for wrong answers