@bytebury/sauce - v1.4.0
    Preparing search index...

    Function isNotEmpty

    • Determines if the given thing is not empty.

      Parameters

      Returns boolean

      this is the inverse of isEmpty.

      isNotEmpty([]); // false
      isNotEmpty([0]); // true
      isNotEmpty(""); // false
      isNotEmpty(" "); // true
      isNotEmpty(new Set()); // false
      isNotEmpty({}); // false
      isNotEmpty(new Map()); // false
      isNotEmpty(wrap(null)); // true
      isNotEmpty(wrap('')); // false
      isNotEmpty(wrap(' ')); // false
    • Determines if the given thing is not empty.

      Parameters

      Returns boolean

      this is the inverse of isEmpty.

      isNotEmpty([]); // false
      isNotEmpty([0]); // true
      isNotEmpty(""); // false
      isNotEmpty(" "); // true
      isNotEmpty(new Set()); // false
      isNotEmpty({}); // false
      isNotEmpty(new Map()); // false
      isNotEmpty(wrap(null)); // true
      isNotEmpty(wrap('')); // false
      isNotEmpty(wrap(' ')); // false
    • Determines if the given thing is not empty.

      Parameters

      • thing: unknown

      Returns boolean

      this is the inverse of isEmpty.

      isNotEmpty([]); // false
      isNotEmpty([0]); // true
      isNotEmpty(""); // false
      isNotEmpty(" "); // true
      isNotEmpty(new Set()); // false
      isNotEmpty({}); // false
      isNotEmpty(new Map()); // false
      isNotEmpty(wrap(null)); // true
      isNotEmpty(wrap('')); // false
      isNotEmpty(wrap(' ')); // false