Files
ihrm/node_modules/collect.js/docs/api/isNotEmpty.md
2023-05-10 15:06:57 +05:30

392 B

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