Skip to content

webosorg/Iterable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iterable

Status ::: Draft

(NOTE ::: npm package is not published yet)

Synopsys

...

Motivation

...

Usage

iterable

import { iterable } from '@webos/iterable'; // or without { }

iterable(10).forEach(_ => console.log('...'));

asyncIterable

import { asyncIterable } from '@webos/iterable';

import { sleep } from '@webos/timers';

asyncIterable([sleep(200), sleep(1800), sleep(400), sleep(340), sleep(100)])
  .each(_ => console.log('...'))
  .then(_ => console.log('Finished'));

License

MIT licensed

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published