文件操作 - is-forced.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/core-js/internals/is-forced.js
编辑文件内容
var fails = require('../internals/fails'); var isCallable = require('../internals/is-callable'); var replacement = /#|\.prototype\./; var isForced = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection; }; var normalize = isForced.normalize = function (string) { return String(string).replace(replacement, '.').toLowerCase(); }; var data = isForced.data = {}; var NATIVE = isForced.NATIVE = 'N'; var POLYFILL = isForced.POLYFILL = 'P'; module.exports = isForced;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件