@n3okill/tslinq
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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, EnumerableAsync } from "@n3okill/tslinq";

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

or

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

Runing tests

  • npm run lint: runs the linter
  • npm run unit: run unit tests
  • npm test: run both lint and 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

Namespaces

Classes

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 typescript with a fast implementation

Credits

  • Microsoft - For developing linq and typescript

License

MIT License

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

Readme

Keywords

Package Sidebar

Install

npm i @n3okill/tslinq

Weekly Downloads

9

Version

1.0.0

License

MIT

Unpacked Size

1.07 MB

Total Files

767

Last publish

Collaborators

  • n3okill