MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / isInteger

Function isInteger

lib/web/tern/infer.js:535–539  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

533 });
534
535 function isInteger(str) {
536 var c0 = str.charCodeAt(0)
537 if (c0 >= 48 && c0 <= 57) return !/\D/.test(str)
538 else return false
539 }
540
541 var Obj = exports.Obj = function(proto, name) {
542 if (!this.props) this.props = Object.create(null);

Callers 2

polyfill.jsFile · 0.85
infer.jsFile · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected