12 lines
327 B
JavaScript
12 lines
327 B
JavaScript
'use strict';
|
|
|
|
var ToObject = require('es-object-atoms/ToObject');
|
|
var ToPropertyKey = require('es-abstract/2024/ToPropertyKey');
|
|
var HasOwnProperty = require('es-abstract/2024/HasOwnProperty');
|
|
|
|
module.exports = function hasOwn(O, P) {
|
|
var obj = ToObject(O);
|
|
var key = ToPropertyKey(P);
|
|
return HasOwnProperty(obj, key);
|
|
};
|