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