MCPcopy
hub / github.com/ternjs/tern / isInteger

Function isInteger

lib/infer.js:546–550  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

544 });
545
546 function isInteger(str) {
547 var c0 = str.charCodeAt(0);
548 if (c0 >= 48 && c0 <= 57) return !/\D/.test(str);
549 else return false;
550 }
551
552 var Obj = exports.Obj = function(proto, name) {
553 if (!this.props) this.props = Object.create(null);

Callers 1

infer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…