Skip to content

Instantly share code, notes, and snippets.

@odyss009
Created September 22, 2017 12:26
Show Gist options
  • Save odyss009/cddd35d63451c6339efbf6b904214ab3 to your computer and use it in GitHub Desktop.
Save odyss009/cddd35d63451c6339efbf6b904214ab3 to your computer and use it in GitHub Desktop.
indent
//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