nullify
Wrap a function to only run on non-null values
Install
$ npm install --save nullify
Usage
var nullify = 'foo'//=> oof null//=> null { return string}
API
nullify(fn)
-> function
Returns a function that passes through to fn
when the outer function receives a non-null value.
fn
Required
Type: function
License
MIT © Ben Drucker