Guard-function
Guard a function using a predicate.
Installation
npm install guard-function
Usage
Basic usage
var guard = ; let str + str; // Silently fail when non-string is passed incapitalize = ; ; // => undefined; // => "You shall not pass!" let a / b; // Throw exception instead of failing silently by passing an Error instance as 3rd paramdiv =