it('matchesBy', () => {
    // support both values and comparator functions
    const test = F.matchesBy({
      a: (x) => x > 1,
      b: (x) => x == 2,