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

Function get

tests/test_code/js/moment/moment.js:713–717  ·  view source on GitHub ↗
(mom, unit)

Source from the content-addressed store, hash-verified

711 }
712
713 function get(mom, unit) {
714 return mom.isValid()
715 ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
716 : NaN;
717 }
718
719 function set$1(mom, unit, value) {
720 if (mom.isValid() && !isNaN(value)) {

Callers 3

makeGetSetFunction · 0.85
getSetMonthFunction · 0.85
addSubtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected