UNPKG

date-fns

Version:

Modern JavaScript date utility library

8 lines 296 B
export default function buildFormatLongFn(args) { return function (dirtyOptions) { var options = dirtyOptions || {}; var width = options.width ? String(options.width) : args.defaultWidth; var format = args.formats[width] || args.formats[args.defaultWidth]; return format; }; }