https://github.com/fabeuluci/js-enumerable
Simple lazy typescript enumerable at javascript arrays.
https://github.com/fabeuluci/js-enumerable
enumerable
Last synced: 4 months ago
JSON representation
Simple lazy typescript enumerable at javascript arrays.
- Host: GitHub
- URL: https://github.com/fabeuluci/js-enumerable
- Owner: fabeuluci
- License: mit
- Created: 2018-05-05T15:41:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-12T21:32:12.000Z (over 6 years ago)
- Last Synced: 2025-10-31T08:22:32.708Z (8 months ago)
- Topics: enumerable
- Language: TypeScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
js-enumerable
====
Simple lazy typescript enumerable at javascript arrays.
API
----
Module exports $A function, which returns IEnumarable interface.
Example
---
```typescript
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)