Closed pabigot closed 4 years ago
Number.isNaN("colour") returns false so things break. +"colour" is NaN so Number.isNaN(+"colour") returns true and things work. Style checker requires that +x be spelled Number(x).
Number.isNaN("colour")
+"colour"
Number.isNaN(+"colour")
+x
Number(x)
Fixes #75
Looks good to me, your reasoning makes sense.
Thanks for the contributions.
Published @1.13.3.
Number.isNaN("colour")
returns false so things break.+"colour"
is NaN soNumber.isNaN(+"colour")
returns true and things work. Style checker requires that+x
be spelledNumber(x)
.Fixes #75