文件操作 - _baseSortBy.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/lodash/_baseSortBy.js
编辑文件内容
/** * The base implementation of `_.sortBy` which uses `comparer` to define the * sort order of `array` and replaces criteria objects with their corresponding * values. * * @private * @param {Array} array The array to sort. * @param {Function} comparer The function to define sort order. * @returns {Array} Returns `array`. */ function baseSortBy(array, comparer) { var length = array.length; array.sort(comparer); while (length--) { array[length] = array[length].value; } return array; } module.exports = baseSortBy;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件