MCPcopy Create free account
hub / github.com/breck7/scroll / __mld

Function __mld

external/.datatables.js:11273–11281  ·  view source on GitHub ↗

* Common logic for moment, luxon or a date action. * * Happens after __mldObj, so don't need to call `resolveWindowsLibs` again

(dtLib, momentFn, luxonFn, dateFn, arg1)

Source from the content-addressed store, hash-verified

11271 * Happens after __mldObj, so don't need to call `resolveWindowsLibs` again
11272 */
11273 function __mld(dtLib, momentFn, luxonFn, dateFn, arg1) {
11274 if (__moment) {
11275 return dtLib[momentFn](arg1)
11276 } else if (__luxon) {
11277 return dtLib[luxonFn](arg1)
11278 }
11279
11280 return dateFn ? dtLib[dateFn](arg1) : dtLib
11281 }
11282
11283 var __mlWarning = false
11284 var __luxon // Can be assigned in DateTeble.use()

Callers 1

__mlHelperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected