文件操作 - flatten.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash-es/flatten.js
编辑文件内容
import baseFlatten from './_baseFlatten.js'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * Flattens `array` a single level deep. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to flatten. * @returns {Array} Returns the new flattened array. * @example * * _.flatten([1, [2, [3, [4]], 5]]); * // => [1, 2, [3, [4]], 5] */ function flatten(array) { var length = array == null ? 0 : array.length; return length ? baseFlatten(array, 1) : []; } export default flatten;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件