null-undefined-guard
v1.0.0
Published
Guard against null and undefined values
Downloads
2
Maintainers
Readme
null-undefined-guard
Guard against null and undefined values
Examples/Usage
import nullUndefinedGuard from 'null-undefined-guard'
nullUndefinedGuard(element, name?, logic?)
let e = [3, 4, 5]
nullUndefinedGuard(e, 'Array', () => {
console.log('Test')
return e
})
nullUndefinedGuard(e).push(46)