Last active
June 30, 2018 03:59
-
-
Save samzhao/ab0008e2a51dde965f0819a2bbbeade5 to your computer and use it in GitHub Desktop.
Usage of delayedMap helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const toListItem = async item => { | |
const { thing } = await sendRequest(); | |
return thing; | |
}; | |
const delayTime = 100; | |
const items = delayedMap(listOfStuff, toListItem, delayTime); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment