SyntaxFix
Write A Post
Hire A Developer
Questions
How about this one?
isFloat(num) { return typeof num === "number" && !Number.isInteger(num); }