文件操作 - esnext.map.update-or-insert.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/core-js/modules/esnext.map.update-or-insert.js
编辑文件内容
'use strict'; // TODO: remove from `core-js@4` var $ = require('../internals/export'); var upsert = require('../internals/map-upsert'); // `Map.prototype.updateOrInsert` method (replaced by `Map.prototype.emplace`) // https://github.com/thumbsupep/proposal-upsert $({ target: 'Map', proto: true, real: true, name: 'upsert', forced: true }, { updateOrInsert: upsert });
修改文件时间
将文件时间修改为当前时间的前一年
删除文件