Skip to content

fabeuluci/js-enumerable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-enumerable

Simple lazy typescript enumerable at javascript arrays.

API

Module exports $A function, which returns IEnumarable interface.

Example

import {$A} from "js-enumerable";

let array = ["abc", "zxc", "array", "john"];
let $a = $A(array).findAll(x => x.startsWith("a")).map(x => x.length);

console.log($a.toArray()); //prints 3, 4

array.push("attribute");

console.log($a.toArray()); //prints 3, 4, 9

License

The MIT License (MIT)

About

Simple lazy typescript enumerable at javascript arrays.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published