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

Function parseNumberAttrVal

lib/test/angular/1.8.0/angular.js:26899–26904  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

26897}
26898
26899function parseNumberAttrVal(val) {
26900 if (isDefined(val) && !isNumber(val)) {
26901 val = parseFloat(val);
26902 }
26903 return !isNumberNaN(val) ? val : undefined;
26904}
26905
26906function isNumberInteger(num) {
26907 // 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