You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
328 B
11 lines
328 B
'use strict'; |
|
|
|
var ToObject = require('es-abstract/2021/ToObject'); |
|
var ToPropertyKey = require('es-abstract/2021/ToPropertyKey'); |
|
var HasOwnProperty = require('es-abstract/2021/HasOwnProperty'); |
|
|
|
module.exports = function hasOwn(O, P) { |
|
var obj = ToObject(O); |
|
var key = ToPropertyKey(P); |
|
return HasOwnProperty(obj, key); |
|
};
|
|
|