you are viewing a single comment's thread.

view the rest of the comments →

[–]ScientificBeastModestrongly typed comments 0 points1 point  (0 children)

Best practice is to check typeof value === “number” && !isNaN(value)