Gravatar for undefined
6 Likes

determines whether val reference is null or undefined.

isNil (val:*) : boolean

determines whether `val` reference is null or undefined.

Example

 isNil(null) // => true
 isNil('') // => true
`

Argument

val: *

Returns

boolean

Test Summary

#isNil() should return true if null is passedPass
#isNil() should return true if undefined is passedPass
#isNil() should return false as an empty string was passedPass
#isNil() should return false as an empty object was passedPass
#isNil() should return false as a number was passedPass