I've found the solution by myself . I hope this can help someone
stmt.stepAsync().then(function(r) {
if (r) {
var obj = {}, i = -1;
while (++i < stmt.columnCount) {
obj[stmt.getColumnName(i)] = stmt.getTextAt(i);
}
arr.push(obj);
stmt.stepAsync().then(arguments.callee);
} else {
console.log(arr);
}
})