code: function isObject(val) {
      return (!isUndefined(val) &&
          !isNull(val) &&
          ((val && val.constructor === Object) || typeof val === 'function' || typeof val === 'object'));
  }
docs: Is Object
  Checks if value is an object.
  
  @param val the value to inspect.