function removeBrackets(key) {
  return utils$1.endsWith(key, '[]') ? key.slice(0, -2) : key;
}
It removes the brackets from the end of a string

@param {string} key - The key of the parameter.

@returns {string} the key without the brackets.