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

Function getLocalePart

src/plugin/localeData/index.js:5–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3export default (o, c, dayjs) => { // locale needed later
4 const proto = c.prototype
5 const getLocalePart = part => (part && (part.indexOf ? part : part.s))
6 const getShort = (ins, target, full, num, localeOrder) => {
7 const locale = ins.name ? ins : ins.$locale()
8 const targetLocale = getLocalePart(locale[target])

Callers 1

getShortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected