* 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.
(key)
| 28 | * @returns {string} the key without the brackets. |
| 29 | */ |
| 30 | function removeBrackets(key) { |
| 31 | return utils.endsWith(key, '[]') ? key.slice(0, -2) : key; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * It takes a path, a key, and a boolean, and returns a string |
no outgoing calls
no test coverage detected