/and

the long awaited sequel to not

Primary LanguageTypeScriptMIT LicenseMIT

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