diff options
Diffstat (limited to 'node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js')
| -rw-r--r-- | node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js b/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js new file mode 100644 index 0000000..1e67299 --- /dev/null +++ b/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js @@ -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; + }; +}
\ No newline at end of file |
