文件操作 - _initCloneArray.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/lodash/_initCloneArray.js
编辑文件内容
/** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Initializes an array clone. * * @private * @param {Array} array The array to clone. * @returns {Array} Returns the initialized clone. */ function initCloneArray(array) { var length = array.length, result = new array.constructor(length); // Add properties assigned by `RegExp#exec`. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { result.index = array.index; result.input = array.input; } return result; } module.exports = initCloneArray;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件