netbeast / colorsys

:art: Minimalistic color converter for RGB, HSV, HSL, CMYK, HEX and CSS strings
http://getyeti.co
MIT License
57 stars 16 forks source link

Bug/Compatibility 1.0.22: Arrows Function breaks IE11 #26

Open f-aubert opened 6 years ago

f-aubert commented 6 years ago

Hello, in upgrading I found out that a newly added arrow function breaks compatibility with IE. Could it be avoided?

Here: const transformFn = encoding === 'hsl' ? c => c // If HSL return as incame : colorsys.getTransformEncodingFunction(nextHsl, encoding)

if (typeof transformFn !== 'function') { return color }

jsdario commented 5 years ago

Sure, could you submit a quick PR?

Sorry for taking so long to answer.