code: function toObject (obj, keyValuePair) {
          var _keyValuePair = slicedToArray(keyValuePair, 2),
              key = _keyValuePair[0],
              value = _keyValuePair[1];
  
          obj[key] = value;
  
          return obj;
      }
docs: Convert KeyValuePair[] to Object