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

Function stringGet

tests/test_code/js/moment/moment.js:741–747  ·  view source on GitHub ↗
(units)

Source from the content-addressed store, hash-verified

739 // MOMENTS
740
741 function stringGet(units) {
742 units = normalizeUnits(units);
743 if (isFunction(this[units])) {
744 return this[units]();
745 }
746 return this;
747 }
748
749 function stringSet(units, value) {
750 if (typeof units === 'object') {

Callers

nothing calls this directly

Calls 2

normalizeUnitsFunction · 0.85
isFunctionFunction · 0.85

Tested by

no test coverage detected