In javascript an array is also an object, so most of the time you want to exclude the array: function isObjectExcludeArray(obj){ return (obj === Object(obj) && Object.prototype.toString.call(obj) !== '[object Array]'); }