1.1.0 • Published 1 year ago

@andjsrk/is-nullish v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

is-nullish

Returns true if the given value is null or undefined

Install

$ npm install @andjsrk/is-nullish

Usage

// for CommonJS
const isNullish = require('@andjsrk/is-nullish')

// for ESM
import isNullish from '@andjsrk/is-nullish'
isNullish(null) // true
isNullish(undefined) // true
isNullish(0) // false
isNullish("") // false
isNullish(false) // false
isNullish([]) // false
isNullish({}) // false
1.1.0

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago