color-js / color.js

Color conversion & manipulation library by the editors of the CSS Color specifications
https://colorjs.io
MIT License
1.81k stars 80 forks source link

should add an isNaN() method #562

Closed BonesYT closed 2 weeks ago

BonesYT commented 2 weeks ago

There should be a built-in "isNaN()" method to check if any of the color space values are invalid, just a basic function

LeaVerou commented 2 weeks ago

There…is? Two in fact: isNaN() and Number.isNaN()

LeaVerou commented 2 weeks ago

I’m gonna go ahead and close this, but if I minderstood what you were proposing, feel free to reopen!