MCPcopy Index your code
hub / github.com/TruthHun/BookStack / toNumber

Function toNumber

static/vuejs/vue.runtime.common.js:25–28  ·  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

23 * If the conversion fails, return original string.
24 */
25function toNumber (val) {
26 var n = parseFloat(val);
27 return isNaN(n) ? val : n
28}
29
30/**
31 * 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