文件操作 - _replaceHolders.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash-es/_replaceHolders.js
编辑文件内容
/** Used as the internal argument placeholder. */ var PLACEHOLDER = '__lodash_placeholder__'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * Replaces all `placeholder` elements in `array` with an internal placeholder * and returns an array of their indexes. * * @private * @param {Array} array The array to modify. * @param {*} placeholder The placeholder to replace. * @returns {Array} Returns the new array of placeholder indexes. */ function replaceHolders(array, placeholder) { var index = -1, length = array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (value === placeholder || value === PLACEHOLDER) { array[index] = PLACEHOLDER; result[resIndex++] = index; } } return result; } export default replaceHolders;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件