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

Function toNumber

static/vuejs/vue.runtime.esm.js:23–26  ·  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

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