An open API service indexing awesome lists of open source software.

https://github.com/drewmrk/null-undefined-guard

Guard against null or undefined values
https://github.com/drewmrk/null-undefined-guard

checking guard javascript null typescript undefined

Last synced: 4 days ago
JSON representation

Guard against null or undefined values

Awesome Lists containing this project

README

          

# null-undefined-guard

Guard against null and undefined values

## Examples/Usage

```js
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)
```