Files
rspade_system/node_modules/collect.js/docs/api/isNotEmpty.md
2025-12-03 21:28:08 +00:00

374 B
Executable File

isNotEmpty()

The isNotEmpty method returns true if the collection is not empty; otherwise, false is returned:

collect([1, 2, 3]).isNotEmpty();
//  true

collect().isNotEmpty();
// false

collect([]).isNotEmpty();
// false

collect({}).isNotEmpty();
// false

View source on GitHub