Skip to content

Commit

Permalink
Update the readme with an example of the short syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
w3nl committed Jul 1, 2020
1 parent 4b240b0 commit 79a511f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ Output a boolean:
true
```

Or the simple way:
```
import { and } from "@hckrnews/logic-gates";
and([true, true])
```

Output a boolean:
```
true
```

All options:
- [AndGate](https://en.wikipedia.org/wiki/AND_gate)
- [NandGate](https://en.wikipedia.org/wiki/NAND_gate)
Expand Down

0 comments on commit 79a511f

Please sign in to comment.