文件操作 - _baseNth.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash-es/_baseNth.js
编辑文件内容
import isIndex from './_isIndex.js'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * The base implementation of `_.nth` which doesn't coerce arguments. * * @private * @param {Array} array The array to query. * @param {number} n The index of the element to return. * @returns {*} Returns the nth element of `array`. */ function baseNth(array, n) { var length = array.length; if (!length) { return; } n += n < 0 ? length : 0; return isIndex(n, length) ? array[n] : undefined; } export default baseNth;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件