Share your code. Components are building blocks, you are the architect.

utils/is-nil
v1.0.0
1.0.0
MIT
PUBLIC
0
0     DEPENDENCIES
Build: none
BuildNone
Checks if the input value is `null` or `undefined`.

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/is-nil in your project
npm i @bit/bit.ramda.utils.is-nil
Copied

isNil (x:*) : Boolean

Checks if the input value is null or undefined.

Example

R.isNil(null); //=> true
     R.isNil(undefined); //=> true
     R.isNil(0); //=> false
     R.isNil([]); //=> false

Argument

x: *

The value to test.

Returns

Boolean

`true` if `x` is `undefined` or `null`, otherwise `false`.