@micahlittle/linqjs
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

What is LinqJs?

LinqJs is a library that provides C#-style querying of objects in JavaScript.

Current Version

  • 1.0.5

Features

  • Aggregate
  • All
  • Any
  • Contains
  • Count
  • Distinct
  • ElementAt
  • ElementAtOrDefault
  • Except
  • First
  • FirstOrDefault
  • GroupBy
  • GroupJoin
  • Intersect
  • Join
  • Last
  • LastOrDefault
  • Max
  • Min
  • OrderBy
  • OrderByDescending
  • Range
  • Repeat
  • Select
  • SelectMany
  • SequenceEqual
  • Single
  • SingleOrDefault
  • Skip
  • SkipWhile
  • Take
  • TakeWhile
  • ThenBy
  • ThenByDescending
  • ToArray
  • Union
  • Where
  • Zip

Getting Started

Installation

$ npm install --save @micahlittle/linqjs

Example

import { Enumerable } from '@micahlittle/linqjs';

Enumerable.from([3, 1, 5, 9, 7]).orderBy(x => x).toArray()
// produces [1, 3, 5, 7, 9]

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i @micahlittle/linqjs

    Weekly Downloads

    24

    Version

    1.0.5

    License

    ISC

    Unpacked Size

    46.1 kB

    Total Files

    7

    Last publish

    Collaborators

    • micah8719