MCPcopy
hub / github.com/angular-ui/ui-router / parseNumberAttrVal

Function parseNumberAttrVal

test/angular/1.7/angular.js:26834–26839  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

26832}
26833
26834function parseNumberAttrVal(val) {
26835 if (isDefined(val) && !isNumber(val)) {
26836 val = parseFloat(val);
26837 }
26838 return !isNumberNaN(val) ? val : undefined;
26839}
26840
26841function isNumberInteger(num) {
26842 // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066

Callers 5

numberInputTypeFunction · 0.70
rangeInputTypeFunction · 0.70
minChangeFunction · 0.70
maxChangeFunction · 0.70
stepChangeFunction · 0.70

Calls 2

isDefinedFunction · 0.70
isNumberFunction · 0.70

Tested by

no test coverage detected