Available now
pnpm add @ollierelph/and-or
or pnpm add and-or
and-or
allows you to build 2d arrays of options to iterate over
import {Single} from "and-or4t"
const one = new Single("ONE");
const two = new Single("TWO");
const three = new Single("THREE");
console.log(one.and(two).and(three));
/**
* Gives us:
* [["ONE", "TWO", "THREE"]]
*/
console.log(one.or(two).or(three));
/**
* Gives us:
* [["ONE"], ["TWO"], ["THREE"]]
*/
console.log(one.or(two).and(three));
/**
* Gives us:
* [["ONE", "THREE"], ["TWO", "THREE"]]
*/