function-maybe
Lift your function into maybe
Motivation
Clean up your code by ensuring that function arguments will never be undefined
// Turn this: { if string === undefined return undefined return string} // Into this:const toUpper =
Installation
npm install function-maybe
Examples
const toUpper = console // => DOGEconsole // => undefined const join = const format = console // => DOGE,SUCH,WOW!console // => undefined
Testing
npm test