instance method SpahQL#each
SpahQL#each(callback) → SpahQL
-
callback
(Function
) – A callback to execute against each result in the set. The callback will receive the arguments (index, total). within the function, thethis
keyword will refer to the QueryResult for this iteration.
Executes the callback function with each item in this resultset. The loop is halted if the callback at any time returns false. This method will return true if the loop completes, and false if it is halted midway. If the callback function does not return anything, the loop will continue to completion.