MCPcopy Create free account
hub / github.com/choosehappy/QuickAnnotator / isNumberInteger

Function isNumberInteger

static/js/angular.js:26841–26847  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

26839}
26840
26841function isNumberInteger(num) {
26842 // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066
26843 // (minus the assumption that `num` is a number)
26844
26845 // eslint-disable-next-line no-bitwise
26846 return (num | 0) === num;
26847}
26848
26849function countDecimals(num) {
26850 var numString = num.toString();

Callers 1

isValidForStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected