* Checks if an array contains undefined values * @param {*} arg - The data to check * @returns {boolean} True if the array contains undefined values
(arg)
| 10 | * @returns {boolean} True if the array contains undefined values |
| 11 | */ |
| 12 | function hasUndefined (arg) { |
| 13 | return Array.isArray(arg) && arg.some(item => item === undefined); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Clones data efficiently based on whether it contains undefined values |