MCPcopy
hub / github.com/iamkun/dayjs / wrapper

Function wrapper

src/plugin/duration/index.js:31–32  ·  view source on GitHub ↗
(input, instance, unit)

Source from the content-addressed store, hash-verified

29let $u
30
31const wrapper = (input, instance, unit) =>
32 new Duration(input, unit, instance.$l) // eslint-disable-line no-use-before-define
33
34const prettyUnit = unit => `${$u.p(unit)}s`
35const isNegative = number => number < 0

Callers 4

constructorMethod · 0.70
addMethod · 0.70
cloneMethod · 0.70
index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected