Closed cloutsocks closed 4 years ago
https://github.com/lokesh/color-thief/blob/1c70277219c7bcfcd5ea4481cdb17136077c4fc1/src/core.js#L34
I believe you meant to check !Number.isInteger(quality), not the inverse. Also, I feel hard-coding the upper limit of 20 shouldn't be a thing, and that it should be a default option.
!Number.isInteger(quality)
https://github.com/lokesh/color-thief/blob/1c70277219c7bcfcd5ea4481cdb17136077c4fc1/src/core.js#L34
I believe you meant to check
!Number.isInteger(quality)
, not the inverse. Also, I feel hard-coding the upper limit of 20 shouldn't be a thing, and that it should be a default option.