Created
September 14, 2016 02:43
-
-
Save JoshBarr/6e711c2ed6a05e99a5c85786cadf6057 to your computer and use it in GitHub Desktop.
Butter Chicken for Javascript
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 getGetRowCounts = (connection) => { | |
return (item) => { | |
return connection.query('SELECT * from foo'); | |
}; | |
}; | |
// Later on.. | |
connect('some/server').then((conn) => { | |
const iterator = getGetRowCounts(conn); | |
const actions = [].map(iterator); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment