@spbarker/null-or-empty

1.0.0 • Public • Published

null-or-empty

Basic helper function which determines if something is null or empty

import nullOrEmpty from 'null-or-empty'

console.log(nullOrEmpty('')) // true
console.log(nullOrEmpty(null)) // true
console.log(nullOrEmpty(undefined)) // true
console.log(nullOrEmpty([])) // true
console.log(nullOrEmpty('Example')) // false

Readme

Keywords

Package Sidebar

Install

npm i @spbarker/null-or-empty

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.97 kB

Total Files

5

Last publish

Collaborators

  • spbarker