code: function applyChange(original, key, value) {
    if (value === undefined) {
      return Object.assign({}, original, key);
    }
    return Object.assign({}, original, { [key]: value });
  }
docs: /* eslint-disable react/jsx-no-bind Without a third parameter, this function assumes the second parameter is an object contains keys and values to update in the original object.