source: trip-planner-front/node_modules/core-js/internals/get-built-in.js

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 
1var global = require('../internals/global');
2
3var aFunction = function (variable) {
4 return typeof variable == 'function' ? variable : undefined;
5};
6
7module.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.