refactor(apimock): make loops IE8 safe
refactor(apimock): make loops IE8 safe

We were using Array.prototype methods that IE8 doesn’t support. This
was never in a released version of apiMock so I’m not counting it as an
actual “fix”.

MartinSandstrom/angular-apimock,MartinSandstrom/angular-apimock,seriema/angular-apimock,seriema/angular-apimock