var myData = getAllResults(mySearch).map(resultToObject);
approach in basically every scenario
s
stalbert
04/17/2018, 5:16 PM
might consider adding lazy evaluation rather than loading all (say 50,000) results at once into memory, then making another copy of (50,000) with the map().