perf(limitTo): replace for loop with slice