文件操作 - _baseNth.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/lodash/_baseNth.js
编辑文件内容
var isIndex = require('./_isIndex'); /** * 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; } module.exports = baseNth;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件