文件操作 - toPairs.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash-es/toPairs.js
编辑文件内容
import createToPairs from './_createToPairs.js'; import keys from './keys.js'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * Creates an array of own enumerable string keyed-value pairs for `object` * which can be consumed by `_.fromPairs`. If `object` is a map or set, its * entries are returned. * * @static * @memberOf _ * @since 4.0.0 * @alias entries * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the key-value pairs. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.toPairs(new Foo); * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed) */ var toPairs = createToPairs(keys); export default toPairs;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件