An implementation of LINQ using features available in ES6, such as Iterators and Generators.
The implementation uses ES6 features available in Chrome Canary, and will be updated (hopefully) when newer features are supported in Chrome Canary.
Support Chrome Canary
Enabling Experimental JavaScript features
Enabling Harmony flag
NPM
Bower
Nuget
- asEnumerable(array)
- range(start, count)
- repeat(value, count)
- empty()
- all(predicate)
- any(predicate?)
- count(predicate?)
- first(predicate?)
- forEach(fn)
- last(predicate?)
- reduce(fn, initialValue?, resultSelector?)
- single(predicate?)
- toArray()
- concat(collection)
- defaultIfEmpty(defaultValue?)
- reverse()
- select(predicate)
- selectMany(collectionSelector, resultSelector?)
- skip(count)
- skipWhile(predicate)
- where(predicate)
- take(count)
- takeWhile(predicate)
Karma