MCPcopy Create free account
hub / github.com/ampproject/amphtml / isNum

Function isNum

src/service/action-impl.js:1401–1403  ·  view source on GitHub ↗

* Tests whether a chacter is a number. * @param {string} c * @return {boolean}

(c)

Source from the content-addressed store, hash-verified

1399 * @return {boolean}
1400 */
1401function isNum(c) {
1402 return c >= '0' && c <= '9';
1403}
1404
1405/**
1406 * @param {!./ampdoc-impl.AmpDoc} ampdoc

Callers 1

next_Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected