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

321 B

isEmpty()

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

collect().isEmpty();
// true

collect([]).isEmpty();
// true

collect({}).isEmpty();
// true

View source on GitHub