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.
10 lines
380 B
10 lines
380 B
2 years ago
|
var uncurryThis = require('../internals/function-uncurry-this');
|
||
|
var aCallable = require('../internals/a-callable');
|
||
|
|
||
|
module.exports = function (object, key, method) {
|
||
|
try {
|
||
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
||
|
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
||
|
} catch (error) { /* empty */ }
|
||
|
};
|