@ajkachnic/and

the long awaited sequel to not

Usage no npm install needed!

<script type="module">
  import ajkachnicAnd from 'https://cdn.skypack.dev/@ajkachnic/and';
</script>

README

and

the long awaited sequel to not

usage

with typescript:

import and from '@ajkachnic/and'
const myNum = 2

if(and(myNum === 1, true)) {
  console.log('it works')
}

common js:

const and = require('@ajkachnic/and')
const myNum = 2

if(and(myNum === 1, true)) {
  console.log('it works')
}

api

takes a two booleans, returns a boolean... enough said