delay-map
In order to delay map func running with a timeout.
Basically, iterable object passed to map function will be executed one after another immediately. there is a situation you want to simluate a running with timeout. such as the next one should run with 300ms delay.
Usage
const delayMap = ; const dm = 589 { return value + key;} timeout: 1000 dm // res: [5, 9, 11]
API
delay-map(iterable, func, [options])
input
Type: Iterable<Promise|any>
func(item, index)
Type: Function
options
Type: Object
timeout
License
MIT