get-method.js 239 B

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