MCPcopy
hub / github.com/jayfk/statuspage / Pb

Function Pb

statuspage/template/statuspage.js:246–246  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

244var c=a&&parseFloat(a.replace(",","."));
245// apply sign while we're at it
246return(isNaN(c)?0:c)*b}function Ob(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function Pb(a,b){var c;return a.isValid()&&b.isValid()?(b=zb(b,a),a.isBefore(b)?c=Ob(a,b):(c=Ob(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function Qb(a){return 0>a?-1*Math.round(-1*a):Math.round(a)}
247// TODO: remove 'name' arg after deprecation is removed
248function Rb(a,b){return function(c,d){var e,f;
249//invert the arguments, but complain about it

Callers 1

MbFunction · 0.85

Calls 2

zbFunction · 0.85
ObFunction · 0.85

Tested by

no test coverage detected