ecrmnn
2 years ago

Collect.js: Use Laravel Collections API in JavaScript.

Posted 2 years ago by ecrmnn

Hi, guys!

I wanted to have the same great experience when working with arrays and objects in JavaScript as I was having with Laravel Collections.

I made collect.js that offers an identical API to Laravel Collections.

Any feedback would be appreciated.

https://github.com/ecrmnn/collect.js

collect(products).where('price', '>', 299).sortBy('brand');

Please sign in or create an account to participate in this conversation.