UNPKG

@tsdotnet/linq

Version:

A familiar set of functions that operate on JavaScript iterables (ES2015+) in a similar way to .NET's LINQ does with enumerables.

34 lines (33 loc) 1.72 kB
/*! * @author electricessence / https://github.com/electricessence/ * @license MIT */ import aggregate from './resolutions/aggregate'; import all from './resolutions/all'; import any from './resolutions/any'; import asArray from './resolutions/asArray'; import average from './resolutions/average'; import contains from './resolutions/contains'; import count from './resolutions/count'; import elementAt from './resolutions/elementAt'; import elementAtOrDefault from './resolutions/elementAtOrDefault'; import first from './resolutions/first'; import firstOrDefault from './resolutions/firstOrDefault'; import hasAny from './resolutions/hasAny'; import indexOf from './resolutions/indexOf'; import isEmpty from './resolutions/isEmpty'; import { joinStrings } from './resolutions/joinStrings'; import last from './resolutions/last'; import lastIndexOf from './resolutions/lastIndexOf'; import lastOrDefault from './resolutions/lastOrDefault'; import max from './resolutions/max'; import min from './resolutions/min'; import product from './resolutions/product'; import sequenceEqual from './resolutions/sequenceEqual'; import single from './resolutions/single'; import singleOrDefault from './resolutions/singleOrDefault'; import sum from './resolutions/sum'; import sumAndCount from './resolutions/sumAndCount'; import toArray from './resolutions/toArray'; import toMap, { MappingMode } from './resolutions/toMap'; export { aggregate, all, any, average, contains, count, elementAt, elementAtOrDefault, first, firstOrDefault, hasAny, indexOf, isEmpty, joinStrings, last, lastIndexOf, lastOrDefault, min, max, product, sequenceEqual, single, singleOrDefault, sum, sumAndCount, asArray, toArray, toMap, MappingMode };