UNPKG

334 BJavaScriptView Raw
1'use strict';
2var aCallable = require('../internals/a-callable');
3var isNullOrUndefined = require('../internals/is-null-or-undefined');
4
5// `GetMethod` abstract operation
6// https://tc39.es/ecma262/#sec-getmethod
7module.exports = function (V, P) {
8 var func = V[P];
9 return isNullOrUndefined(func) ? undefined : aCallable(func);
10};