MCPcopy Index your code
hub / github.com/csev/py4e / getSet

Function getSet

code/gmane/Chart.bundle.js:1987–2000  ·  view source on GitHub ↗
(units, value)

Source from the content-addressed store, hash-verified

1985 // MOMENTS
1986
1987 function getSet (units, value) {
1988 var unit;
1989 if (typeof units === 'object') {
1990 for (unit in units) {
1991 this.set(unit, units[unit]);
1992 }
1993 } else {
1994 units = normalizeUnits(units);
1995 if (typeof this[units] === 'function') {
1996 return this[units](value);
1997 }
1998 }
1999 return this;
2000 }
2001
2002 function zeroFill(number, targetLength, forceSign) {
2003 var absNumber = '' + Math.abs(number),

Callers

nothing calls this directly

Calls 1

normalizeUnitsFunction · 0.85

Tested by

no test coverage detected