MCPcopy Index your code
hub / github.com/feiyu563/PrometheusAlert / parseIso

Function parseIso

static/plugins/chart.js/Chart.bundle.js:17799–17806  ·  view source on GitHub ↗
(inp, sign)

Source from the content-addressed store, hash-verified

17797 createDuration.invalid = createInvalid$1;
17798
17799 function parseIso (inp, sign) {
17800 // We'd normally use ~~inp for this, but unfortunately it also
17801 // converts floats to ints.
17802 // inp may be undefined, so careful calling replace on it.
17803 var res = inp && parseFloat(inp.replace(',', '.'));
17804 // apply sign while we're at it
17805 return (isNaN(res) ? 0 : res) * sign;
17806 }
17807
17808 function positiveMomentsDifference(base, other) {
17809 var res = {};

Callers 1

createDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected