isNotPresent (source code)
- Curried: true
- Failsafe status: failsafe by default
The isNotPresent
function is a utility that checks if a value is not present.
It combines checks for null and empty values. It is worth noting that we also
have an isPresent isPresent
utility function that returns the complement of
isNotPresent
.
- The value to be checked for presence.
isNotPresent([]); // returns true
isNotPresent(null); // returns true
isNotPresent(""); // returns true
isNotPresent("Oliver"); // returns false