angular/angular.js — pull request #10475 by kwypchlo (2014-12-15 23:50:56+00:00)
Title: perf(limitTo): replace for loop with slice

By replacing ```for``` loop with a slice we get a microscopic (but still :) ) performance boost while additional ```limit``` makes sure that if limit is ```0``` or ```NaN``` the function will return empty array.