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

Function parseNumberAttrVal

lib/test/angular/1.6.7/angular.js:25489–25494  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

25487}
25488
25489function parseNumberAttrVal(val) {
25490 if (isDefined(val) && !isNumber(val)) {
25491 val = parseFloat(val);
25492 }
25493 return !isNumberNaN(val) ? val : undefined;
25494}
25495
25496function isNumberInteger(num) {
25497 // 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