aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/locale/_lib/buildFormatLongFn/index.js
blob: 5f7cab1bd6b4bcfe6a48b99e5693336e1d3d241c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = buildFormatLongFn;
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;
  };
}
module.exports = exports.default;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage