( root: ConditionGroupExpr, mutate: (clone: ConditionGroupExpr) => void )
| 92 | |
| 93 | // Clone root, apply a mutation to the clone, return the clone. |
| 94 | function updateExpr( |
| 95 | root: ConditionGroupExpr, |
| 96 | mutate: (clone: ConditionGroupExpr) => void |
| 97 | ): ConditionGroupExpr { |
| 98 | const clone = structuredClone(root); |
| 99 | mutate(clone); |
| 100 | return clone; |
| 101 | } |
| 102 | |
| 103 | // ============================================================ |
| 104 | // Context |
no outgoing calls
no test coverage detected