# Stacks Collections Easily work with via Laravel-like collections. ## โ˜˜๏ธ Features - Access to Laravel-like Collections API - Other object helpers ## ๐Ÿค– Usage ```bash bun install -d @stacksjs/collections ``` Now, you can easily access it in your project: ```js import { collect } from '@stacksjs/collections' const collection = collect([{ name: 'My story', pages: 176, }, { name: 'Fantastic Beasts and Where to Find Them', pages: 1096, }]) console.log(collection.avg('pages')) // 636 ``` To view the full documentation, please visit [s](https://stacksjs.com/collections). ## ๐Ÿงช Testing ```bash bun test ``` ## ๐Ÿ“ˆ Changelog Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently. ## ๐Ÿšœ Contributing Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details. ## ๐Ÿ Community For help, discussion about best practices, or any other conversation that would benefit from being searchable: [Discussions on GitHub](https://github.com/stacksjs/stacks/discussions) For casual chit-chat with others using this package: [Join the Stacks Discord Server](https://stacksjs.com/discord) ## ๐Ÿ™๐Ÿผ Credits Many thanks to the following core technologies & people who have contributed to this package: - [Collect.js](https://github.com/ecrmnn/collect.js) - [Laravel](https://laravel.com/) - [Chris Breuer](https://github.com/chrisbbreuer) - [All Contributors](../../contributors) ## ๐Ÿ“„ License The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information. Made with ๐Ÿ’™