timepiece/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs

9 lines
278 B
JavaScript
Raw Normal View History

2024-05-14 14:54:12 +00:00
export function buildFormatLongFn(args) {
return (options = {}) => {
// TODO: Remove String()
const width = options.width ? String(options.width) : args.defaultWidth;
const format = args.formats[width] || args.formats[args.defaultWidth];
return format;
};
}