instance method Spah.SpahQL.QueryResultSet#replaceEach
Spah.SpahQL.QueryResultSet#replaceEach(value, testCallback) → QueryResultSet
-
value
(Object
) – The value to replace any results where the test function is passed. -
testCallback
(Function
) – A function used to test each result in the set. The function will have the same scope and arguments as the callback used in #each.
Calls a test function for each result in this set in turn, and calls replace(value) on those results for which the test function returns true
. Returns this set with the values modified.