Like
Install is-nil as a package?
Copied
npm i @bit/bit.utils.validation.is-nil
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
isNil (
val:
) : *
boolean
determines whether val
reference is null or undefined.
Example
Argument
val:
*
Returns
boolean
Test Summary
#isNil() should return true if null is passed | Pass |
#isNil() should return true if undefined is passed | Pass |
#isNil() should return false as an empty string was passed | Pass |
#isNil() should return false as an empty object was passed | Pass |
#isNil() should return false as a number was passed | Pass |