code: function object(a) {
      if(Object.prototype.toString.call(a) === '[object Array]') {
          return false;
      }
  
      return a !== null && typeof a === 'object';
  }
docs: http://phpjs.org/functions/is_object:450