(declared: Props, data: any, out: any)
| 844 | |
| 845 | // restores declared keys data held as non-enumerable own props after a copy |
| 846 | const keepDeclared = (declared: Props, data: any, out: any): any => { |
| 847 | if (out !== data) { |
| 848 | for (const k in declared) |
| 849 | if (!hasOwn(out, k) && hasOwn(data, k)) setOwnValue(out, k, data[k]) |
| 850 | } |
| 851 | return out |
| 852 | } |
| 853 | |
| 854 | // what props write where nothing can fail, a value's transform returning an |
| 855 | // object and a default being a literal. Only the keys changing can write are |
no test coverage detected