Created
July 20, 2018 04:12
-
-
Save sdawood/8eb888ae92b54193b4ac21d53dd891a7 to your computer and use it in GitHub Desktop.
Reducing the Async Generator into an Array
This file contains hidden or 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 F = require('functional-pipelines') | |
| async function queryAll(table, {keyConditionExpression, expressionAttributeValues, strict, limit} = {}, options = {}, params = {}) { | |
| return F.reduceAsync(F.append(/*reducingFn*/), () => [], querySequence(table, {keyConditionExpression, expressionAttributeValues, limit, strict}, options, params)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment