文件操作 - _castFunction.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash/_castFunction.js
编辑文件内容
var identity = require('./identity'); /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * Casts `value` to `identity` if it's not a function. * * @private * @param {*} value The value to inspect. * @returns {Function} Returns cast function. */ function castFunction(value) { return typeof value == 'function' ? value : identity; } module.exports = castFunction;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件