main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
334 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict';
|
---|
| 2 | var aCallable = require('../internals/a-callable');
|
---|
| 3 | var isNullOrUndefined = require('../internals/is-null-or-undefined');
|
---|
| 4 |
|
---|
| 5 | // `GetMethod` abstract operation
|
---|
| 6 | // https://tc39.es/ecma262/#sec-getmethod
|
---|
| 7 | module.exports = function (V, P) {
|
---|
| 8 | var func = V[P];
|
---|
| 9 | return isNullOrUndefined(func) ? undefined : aCallable(func);
|
---|
| 10 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.