https://www.tutorialspoint.com/How-to-use-JavaScript-to-check-if-a-number-has-a-decimal-place-or-it-s-a-whole-number
Anonymous
Don't force yourself or others to reimplement functionality.