文件操作 - HasProperty.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/es-abstract/2024/HasProperty.js
编辑文件内容
'use strict'; var $TypeError = require('es-errors/type'); var isObject = require('../helpers/isObject'); var isPropertyKey = require('../helpers/isPropertyKey'); // https://262.ecma-international.org/6.0/#sec-hasproperty module.exports = function HasProperty(O, P) { if (!isObject(O)) { throw new $TypeError('Assertion failed: `O` must be an Object'); } if (!isPropertyKey(P)) { throw new $TypeError('Assertion failed: `P` must be a Property Key'); } return P in O; };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件