Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
313 bytes
|
Line | |
---|
1 | var global = require('../internals/global');
|
---|
2 |
|
---|
3 | var aFunction = function (variable) {
|
---|
4 | return typeof variable == 'function' ? variable : undefined;
|
---|
5 | };
|
---|
6 |
|
---|
7 | module.exports = function (namespace, method) {
|
---|
8 | return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];
|
---|
9 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.