Skip to content

drewmrk/null-undefined-guard

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)

About

Guard against null or undefined values

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •