source: imaps-frontend/node_modules/core-js/internals/get-built-in.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 393 bytes
Line 
1'use strict';
2var globalThis = require('../internals/global-this');
3var isCallable = require('../internals/is-callable');
4
5var aFunction = function (argument) {
6 return isCallable(argument) ? argument : undefined;
7};
8
9module.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.