(out: object, data: object, k: Key)
| 238 | // restores a declared key data holds as a non-enumerable own prop after a copy |
| 239 | // (including one that shadows a prototype property) |
| 240 | export const keepOwn = (out: object, data: object, k: Key): void => { |
| 241 | if (!hasOwn(out, k) && hasOwn(data, k)) setOwnValue(out, k, data[k as never]) |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * what deleting undeclared keys makes of data other than a plain object, a copy |
no test coverage detected