Collect.js is a convenient and dependency free wrapper for working with arrays and objects.

Laravel collections

It works just like Laravel collections, so if you want to use Laravel collections in your javascript project, Collect.js is a perfect choice.

You can install it using this command:

npm install collect.js --save