.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / get-built-in.js
1 var path = require('../internals/path');
2 var global = require('../internals/global');
3
4 var aFunction = function (variable) {
5   return typeof variable == 'function' ? variable : undefined;
6 };
7
8 module.exports = function (namespace, method) {
9   return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
10     : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
11 };