|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
393 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var globalThis = require('../internals/global-this');
|
|---|
| 3 | var isCallable = require('../internals/is-callable');
|
|---|
| 4 |
|
|---|
| 5 | var aFunction = function (argument) {
|
|---|
| 6 | return isCallable(argument) ? argument : undefined;
|
|---|
| 7 | };
|
|---|
| 8 |
|
|---|
| 9 | module.exports = function (namespace, method) {
|
|---|
| 10 | return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
|
|---|
| 11 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.