function hasProperties(obj) {
      var properties = [];
      for (var _i = 1; _i < arguments.length; _i++) {
          properties[_i - 1] = arguments[_i];
      }
      return properties.filter(function (key) {
          return typeof obj[key] !== 'undefined';
      }).length > 0;
  }
Returns true/false whether the object parameter has its own properties defined

@param obj
@param properties
@returns {boolean}