You could have found a better example. The package you referenced literally just does `Number.isInteger` unless you are on decade old versions of nodejs
Even when the language migrates to a standard (NumberisInteger), the remaining ecosystem keeps depending on this package.