perf(all): minor loop optimization
perf(all): minor loop optimization

aurelia/history-browser,davismj/history-browser,hitesh97/history-browser,aurelia/history-browser,cmichaelgraham/history-browser,bryanrsmith/history-browser