(node: NodeValue, value: any)
| 603 | } |
| 604 | |
| 605 | function assign(node: NodeValue, value: any) { |
| 606 | const proxy = getProxy(node); |
| 607 | |
| 608 | beginBatch(); |
| 609 | |
| 610 | if (isPrimitive(node.root._)) { |
| 611 | node.root._ = {}; |
| 612 | } |
| 613 | |
| 614 | // Set inAssign to allow setting on safe observables |
| 615 | node.isAssigning = (node.isAssigning || 0) + 1; |
| 616 | try { |
| 617 | Object.assign(proxy, value); |
| 618 | } finally { |
| 619 | node.isAssigning--; |
| 620 | } |
| 621 | |
| 622 | endBatch(); |
| 623 | |
| 624 | return proxy; |
| 625 | } |
| 626 | |
| 627 | function deleteFn(node: NodeValue, key?: string) { |
| 628 | // If called without a key, delete by key from the parent node |
nothing calls this directly
no test coverage detected