(data: object, copy = copyOf(data))
| 968 | } |
| 969 | |
| 970 | private copy(data: object, copy = copyOf(data)): object { |
| 971 | if (this.sequence) { |
| 972 | for (const prop of this.inOrder) { |
| 973 | if (hasOwn(data, prop.key)) |
| 974 | setOwnValue(copy, prop.key, data[prop.key as never]) |
| 975 | } |
| 976 | } |
| 977 | return copy |
| 978 | } |
| 979 | |
| 980 | /** its props whose key `Object.prototype` has, which data can inherit */ |
| 981 | readonly protoProps: Prop.Node[] = this.props.filter( |