js-enumerable
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i js-enumerable

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

15.9 kB

Total Files

5

Last publish

Collaborators

  • fabeuluci