UNPKG

date-fns-tz

Version:

Time zone support for date-fns v3 with the Intl API

13 lines (12 loc) 406 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertToFP = void 0; function convertToFP(fn, arity, curriedArgs = []) { if (curriedArgs.length >= arity) { return fn(...curriedArgs.slice(0, arity).reverse()); } return function (...args) { return convertToFP(fn, arity, curriedArgs.concat(args)); }; } exports.convertToFP = convertToFP;