Fix palette setting
Closed this issue · 3 comments
loudar commented
if (palette.constructor === Array) {
arimelody commented
is there much benefit to distinguishing palettes as arrays this way? afaik Array.isArray()
is more widely used
loudar commented
Not specifically, but personally I like checking .constructor more because you can use the same way of checking for any class and not just arrays, but that's a style thing.
arimelody commented
should be good!