文件操作 - invoke.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash-es/invoke.js
编辑文件内容
import baseInvoke from './_baseInvoke.js'; import baseRest from './_baseRest.js'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * Invokes the method at `path` of `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the method to invoke. * @param {...*} [args] The arguments to invoke the method with. * @returns {*} Returns the result of the invoked method. * @example * * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] }; * * _.invoke(object, 'a[0].b.c.slice', 1, 3); * // => [2, 3] */ var invoke = baseRest(baseInvoke); export default invoke;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件