🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
258 B
Executable File
258 B
Executable File
count()
The count method returns the total number of items in the collection:
const collection = collect([1, 2, 3, 4]);
collection.count();
// 4