title: Function to scan AWS Dynamo DB recursively for Nodejs
body: <p>So I need a recursive function in <code>node.js</code> for replacing this function call:</p>
  
  <p><code>docClient.scan(params, callback)</code></p>
  
  <p>More info see <a href="http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/GettingStarted.NodeJs.04.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/GettingStarted.NodeJs.04.html</a></p>