Created
September 22, 2017 12:26
-
-
Save odyss009/cddd35d63451c6339efbf6b904214ab3 to your computer and use it in GitHub Desktop.
indent
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
//indent rule | |
return Promise.all(keys.map(key => scan(key))) | |
.then(result => [].concat(...result)) | |
.then(expireKeys.bind(null, client)); | |
//beauiful | |
return Promise.all(keys.map(key => scan(key))) | |
.then(result => [].concat(...result)) | |
.then(expireKeys.bind(null, client)); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment