isNotEmpty (source code)
- Curried: false
- Failsafe status: failsafe by default
The isNotEmpty
returns true
if the given value is not empty (includes
strings, arrays, objects) and false
otherwise. It provides the opposite
behavior of checking if a value is empty, similar to the isEmpty function in
Ramda.
- The value to be checked. Accepts strings, arrays or objects
isNotEmpty(""); // returns false
isNotEmpty(["a"]); // returns true
isNotEmpty({ name: "Oliver" }); //return true