@ollierelph/and-or
v0.0.4
Published
<h2 align="center">and-or</h2>
Downloads
3
Maintainers
Readme
pnpm add @ollierelph/and-or
or pnpm add and-or
What's this?
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"]]
*/