0.0.4 • Published 11 months ago

@ollierelph/and-or v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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"]]
 */
0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago