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

Function parseNumberAttrVal

test/angular/1.6/angular.js:25870–25875  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

25868}
25869
25870function parseNumberAttrVal(val) {
25871 if (isDefined(val) && !isNumber(val)) {
25872 val = parseFloat(val);
25873 }
25874 return !isNumberNaN(val) ? val : undefined;
25875}
25876
25877function isNumberInteger(num) {
25878 // See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066

Callers 4

numberInputTypeFunction · 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