MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / parseNumberAttrVal

Function parseNumberAttrVal

lib/test/angular/1.7.0/angular.js:26027–26032  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

26025}
26026
26027function parseNumberAttrVal(val) {
26028 if (isDefined(val) && !isNumber(val)) {
26029 val = parseFloat(val);
26030 }
26031 return !isNumberNaN(val) ? val : undefined;
26032}
26033
26034function isNumberInteger(num) {
26035 // 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