.
This commit is contained in:
9
node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
generated
vendored
Normal file
9
node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export default function buildFormatLongFn(args) {
|
||||
return function () {
|
||||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
// TODO: Remove String()
|
||||
var width = options.width ? String(options.width) : args.defaultWidth;
|
||||
var format = args.formats[width] || args.formats[args.defaultWidth];
|
||||
return format;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user