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

270 B

count()

The count method returns the total number of items in the collection:

const collection = collect([1, 2, 3, 4]);

collection.count();

// 4

View source on GitHub