0.0.11 • Published 3 years ago

@ornstio/ts-linq v0.0.11

Weekly downloads
57
License
MIT
Repository
github
Last release
3 years ago

@ornstio/ts-linq

Adds LINQ-like typed extensions to Typescript arrays https://ts-linq.ornstio.com/ https://www.npmjs.com/package/@ornstio/ts-linq

Installation

$ npm i @ornstio/ts-linq

Usage

Add the following lines to main.ts:

import { tsLinq } from "@ornstio/ts-linq";
tsLinq();

Examples

any

[0, 1].any((_) =>  _ === 0)
= true

except

const  arr = [{ x:  0 }, { x:  1 }, { x:  2 }];
arr.except([{ x:  0 }, { x:  1 }, { x:  3 }], (a, b) =>  a.x === b.x);
= [{x:2},{x:3}]
0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago