0.2.1 ā€¢ Published 14 days ago

ts-extensials v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

TS extensials (TypeScript essential extensions)

šŸš€ A project built with TypeScript to provide more useful features.

Table of Contents

Installation

To install this project, run npm install ts-extensials --save-dev

Usage

To use this project, follow these steps:

  1. Open your main file (e.g. index.ts or main.ts) to make it usable in a whole project
  2. Import the module you want to use (e.g import 'ts-extensials/array/array.rust';)
  3. To see all available extensions, check Ready extensions list

Code Examples

Here are some code examples to help you get started:

  • Rust-like array methods
// Import a module
import 'ts-extensials/array/array.rust';

const first = [].first();
const last = [].last();

const array = [1, 2, 3, 4, 5];
array.retain(num => num % 2 === 0); 
// array = [2, 4]
  • C# LINQ-like array methods
// Import a module
import 'ts-extensials/array/array.linq';

const array = [1, 2, 3, 4, 5];
array.sum(); // 15
0.2.1

14 days ago

0.2.0

14 days ago

0.1.1

7 months ago

0.1.0

8 months ago