(prev: any, cur: any)
| 639 | |
| 640 | deep = reactive([{ val: 1 }, { val: 2 }]) |
| 641 | const maxBy = (prev: any, cur: any) => { |
| 642 | expect(isReactive(prev)).toBe(true) |
| 643 | expect(isReactive(cur)).toBe(true) |
| 644 | return prev.val > cur.val ? prev : cur |
| 645 | } |
| 646 | left = computed(() => deep.reduce(maxBy)) |
| 647 | right = computed(() => deep.reduceRight(maxBy)) |
| 648 | expect(left.value).toMatchObject({ val: 2 }) |
nothing calls this directly
no test coverage detected