ericelliott / object-list

Treat arrays of objects like a db you can query.
MIT License
43 stars 2 forks source link

Javascript generic list with C# LINQ style functionality #1

Closed brakmic closed 9 years ago

brakmic commented 9 years ago

I found this blog post about a library that offers LINQ-like querying of objects / lists /dictionaries.

http://codeiain.azurewebsites.net/javascript-generic-list-with-c-linq-style-functionality/

Regards, Harris

ericelliott commented 9 years ago

Thanks for the link!

My thoughts:

  1. object-list is strictly non-destructive. It should not mutate the passed in list. Instead, it should return a new list. I didn't look at the linked source well enough to make sure none of its methods mutate.
  2. Our architecture is already much more modular and flexible than that one. We're basing it on how lodash deals with modularity, so you can require just one function, or the entire API. This is helpful to reduce the size of browser bundles.
  3. Our API should be compatible with infinite streams and generators.
  4. We can really improve on that API.

Thoughts on Methods

Already available

ericelliott commented 9 years ago

Good ideas stolen, the rest scrapped. See future.