文件操作 - esnext.array.with.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/core-js-pure/modules/esnext.array.with.js
编辑文件内容
'use strict'; var $ = require('../internals/export'); var arrayWith = require('../internals/array-with'); var toIndexedObject = require('../internals/to-indexed-object'); var $Array = Array; // `Array.prototype.with` method // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with $({ target: 'Array', proto: true }, { 'with': function (index, value) { return arrayWith(toIndexedObject(this), $Array, index, value); } });
修改文件时间
将文件时间修改为当前时间的前一年
删除文件