MCPcopy Create free account
hub / github.com/TruthHun/BookStack / toNumber

Function toNumber

static/vuejs/vue.js:29–32  ·  view source on GitHub ↗

* Convert a input value to a number for persistence. * If the conversion fails, return original string.

(val)

Source from the content-addressed store, hash-verified

27 * If the conversion fails, return original string.
28 */
29function toNumber (val) {
30 var n = parseFloat(val);
31 return isNaN(n) ? val : n
32}
33
34/**
35 * Make a map and return a function for checking if a key

Callers 3

isInputChangedFunction · 0.70
enterFunction · 0.70
leaveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected