MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / parseIso

Function parseIso

tests/test_code/js/moment/moment.js:3520–3527  ·  view source on GitHub ↗
(inp, sign)

Source from the content-addressed store, hash-verified

3518 createDuration.invalid = createInvalid$1;
3519
3520 function parseIso(inp, sign) {
3521 // We'd normally use ~~inp for this, but unfortunately it also
3522 // converts floats to ints.
3523 // inp may be undefined, so careful calling replace on it.
3524 var res = inp && parseFloat(inp.replace(',', '.'));
3525 // apply sign while we're at it
3526 return (isNaN(res) ? 0 : res) * sign;
3527 }
3528
3529 function positiveMomentsDifference(base, other) {
3530 var res = {};

Callers 1

createDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected