* Clones data efficiently based on whether it contains undefined values * @param {*} arg - The data to clone * @returns {*} The cloned data
(arg)
| 19 | * @returns {*} The cloned data |
| 20 | */ |
| 21 | function smartClone (arg) { |
| 22 | return hasUndefined(arg) ? structuredClone(arg) : clone(arg); |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Sorts an array based on query parameters in the request |
no test coverage detected