Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 642 Bytes

isNotEmpty.md

File metadata and controls

21 lines (15 loc) · 642 Bytes

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.

Arguments:

  • The value to be checked. Accepts strings, arrays or objects

Usage:

isNotEmpty(""); // returns false
isNotEmpty(["a"]); // returns true
isNotEmpty({ name: "Oliver" }); //return true