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
334 B

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