文件操作 - convertToFP.cjs
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/date-fns/fp/_lib/convertToFP.cjs
编辑文件内容
"use strict"; exports.convertToFP = convertToFP; /** * Converts a function to a curried function that accepts arguments in reverse * order. * * @param fn - The function to convert to FP * @param arity - The arity of the function * @param curriedArgs - The curried arguments * * @returns FP version of the function * * @private */ function convertToFP(fn, arity, curriedArgs = []) { return curriedArgs.length >= arity ? fn(...curriedArgs.slice(0, arity).reverse()) : (...args) => convertToFP(fn, arity, curriedArgs.concat(args)); }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件