Closed samvloeberghs closed 5 years ago
I've put an if check inside the format loop, checking for hasOwnProperty. Why: https://palantir.github.io/tslint/rules/forin/
hasOwnProperty.
Another approach would have been to use Object.keys(BytesPipe.formats).forEach but there is no nice way of breaking out a forEach.
Object.keys(BytesPipe.formats).forEach
Coverage remained the same at 100.0% when pulling c4556c31d1b9789873b457a84ac3c6da8a1033ac on samvloeberghs:patch-1 into b2f5d371c32cd9842b36724dd059eff70adc2f3f on fknop:master.
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.