(field2, name, opt)
| 106573 | return path; |
| 106574 | } |
| 106575 | function field(field2, name, opt) { |
| 106576 | const path = splitAccessPath(field2); |
| 106577 | field2 = path.length === 1 ? path[0] : field2; |
| 106578 | return accessor((opt && opt.get || getter)(path), [ |
| 106579 | field2 |
| 106580 | ], name || field2); |
| 106581 | } |
| 106582 | const id = field("id"); |
| 106583 | const identity = accessor((_)=>_, [], "identity"); |
| 106584 | const zero = accessor(()=>0, [], "zero"); |
no test coverage detected