fknop / angular-pipes

Useful pipes for Angular
https://fknop.gitbook.io/angular-pipes/
MIT License
732 stars 157 forks source link

Update bytes.pipe.ts #89

Closed samvloeberghs closed 5 years ago

samvloeberghs commented 5 years ago

I've put an if check inside the format loop, checking for hasOwnProperty. Why: https://palantir.github.io/tslint/rules/forin/

Another approach would have been to use Object.keys(BytesPipe.formats).forEach but there is no nice way of breaking out a forEach.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling c4556c31d1b9789873b457a84ac3c6da8a1033ac on samvloeberghs:patch-1 into b2f5d371c32cd9842b36724dd059eff70adc2f3f on fknop:master.