MCPcopy Index your code
hub / github.com/angular-ui/ui-router / parseNumberAttrVal

Function parseNumberAttrVal

test/angular/1.5/angular.js:24727–24732  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

24725}
24726
24727function parseNumberAttrVal(val) {
24728 if (isDefined(val) && !isNumber(val)) {
24729 val = parseFloat(val);
24730 }
24731 return !isNumberNaN(val) ? val : undefined;
24732}
24733
24734function isNumberInteger(num) {
24735 // 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