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

Function prettyUnit

src/plugin/duration/index.js:34–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
36const roundNumber = number =>
37 (isNegative(number) ? Math.ceil(number) : Math.floor(number))

Callers 4

constructorMethod · 0.70
asMethod · 0.70
getMethod · 0.70
addMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected