1.1.4 • Published 12 months ago

@n3okill/tslinq v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

TsLinq

Linq for typescript


Codacy Badge Test Status


Description

Linq for typescript using the fastest iteration mode and deferred methods,

Usage

Install the package

npm install --save @n3okill/tslinq
import { Enumerable, AsyncEnumerable } from "@n3okill/tslinq";

const sum = Enumerable.create([43, 1, 583, 6]).sum();
console.log(`Sum: ${sum} === 633`);

or

const tslinq = require("@n3okill/tslinq");
const sum = await tslinq.AsyncEnumerable.create([43, 1, 583, 6]).sum();
console.log(`Sum: ${sum} === 633`);

For more information check API Documentation

Runing tests

  • npm run lint: runs the linter
  • npm run test: run unit tests

Contribute

If you find a problem with the package you can

  • Submit a Bug
    • If you provide a test case it will make the issue resolution faster

or even make a

Add something new

If you wan't to add something new, following this steps would be much apreciated:

  • Develop the new helper, with clean and readable code
  • Develop tests for the new helper
  • Include in the comments a description of what the helper does, the input arguments and what it returns

Documentation

API Documentation

Examples

For more examples just check the tests folder

Why this module

To bring the best features of linq and it's easy usability to javascript ecosystem with a fast implementation

Credits

License

MIT License

Copyright (c) 2021 Joao Parreira joaofrparreira@gmail.com

1.1.0

1 year ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.0.0

4 years ago