文件操作 - _baseInvoke.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash-es/_baseInvoke.js
编辑文件内容
import apply from './_apply.js'; import castPath from './_castPath.js'; import last from './last.js'; import parent from './_parent.js'; import toKey from './_toKey.js'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * The base implementation of `_.invoke` without support for individual * method arguments. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path of the method to invoke. * @param {Array} args The arguments to invoke the method with. * @returns {*} Returns the result of the invoked method. */ function baseInvoke(object, path, args) { path = castPath(path, object); object = parent(object, path); var func = object == null ? object : object[toKey(last(path))]; return func == null ? undefined : apply(func, object, args); } export default baseInvoke;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件