PIbd-21_Danilov_V.V._Intern.../Lab4/node_modules/object.hasown/implementation.js
Владимир Данилов ab1cc7aeac Отчет лаб 4
2024-01-09 05:30:48 +04:00

12 lines
328 B
JavaScript

'use strict';
var ToObject = require('es-abstract/2023/ToObject');
var ToPropertyKey = require('es-abstract/2023/ToPropertyKey');
var HasOwnProperty = require('es-abstract/2023/HasOwnProperty');
module.exports = function hasOwn(O, P) {
var obj = ToObject(O);
var key = ToPropertyKey(P);
return HasOwnProperty(obj, key);
};