relinq
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

RELINQ

How to use

const { Enumerable } = require('relinq');

const people = [
  { name: 'John', age: 32, married: true },
  { name: 'Vera', age: 21, married: false },
  { name: 'Marie', age: 39, married: false },
  { name: 'Bob', age: 45, married: true },
  { name: 'Glen', age: 28, married: true },
  { name: 'Rick', age: 18, married: false },
];

Enumerable
  .from(people)
  .where(p => p.age < 40)
  .orderBy(p => p.married)
  .thenByDescending(p => p.age);

Readme

Keywords

Package Sidebar

Install

npm i relinq

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

44.1 kB

Total Files

82

Last publish

Collaborators

  • thomicdk