1.0.2 • Published 5 years ago

is-0 v1.0.2

Weekly downloads
25
License
MIT
Repository
github
Last release
5 years ago

is

npm version Build Status Coverage Status

NPM

Usage

Install

$ npm i is-0 
const is = require('is-0')

Example

empty

is.empty('')
is.empty(new String())
is.empty(``)
is.empty(${``})

is.empty([])
is.empty(new Array())

is.empty({})
is.empty(new Object())

is.empty(null)
is.empty(undefined)

not empty

is.empty(1)
is.empty('string')
is.empty([1])
is.empty({a:1})
is.empty(true)
is.empty(false)

is.empty(new Date())
// other objects, except `new Object()`
  • check ./test/datas/empty.js

Tests

npm test