null-undefined-guard
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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)

Package Sidebar

Install

npm i null-undefined-guard

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.23 kB

Total Files

5

Last publish

Collaborators

  • drewmrk