Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 687 Bytes

isNotPresent.md

File metadata and controls

22 lines (16 loc) · 687 Bytes

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.

Arguments

  • The value to be checked for presence.

Usage

isNotPresent([]); // returns true
isNotPresent(null); // returns true
isNotPresent(""); // returns true
isNotPresent("Oliver"); // returns false