code: function extend(obj) {
          for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
              args[_key - 1] = arguments[_key];
          }
  
          if (validateHelpers.isObject(obj) && args.length > 0) {
              if (Object.assign) {
                  return Object.assign.apply(Object, [obj].concat(toConsumableArray(args)));
              }
  
              args.forEach(function (arg) {
                  if (validateHelpers.isObject(arg)) {
                      Object.keys(arg).forEach(function (key) {
                          obj[key] = arg[key];
                      });
                  }
              });
          }
  
          return obj;
      }
docs: Extend the given object
  @param {object} obj - The object to be extended
  @param {*} args - The rest objects which will be merged to the first object
  @return {object} The extended object