Sha256: b5eb31444a1e48a3c9f840fd35ac0c42cb2cd8e860ed3240dc895faac9d59f05
Contents?: true
Size: 434 Bytes
Versions: 29
Compression:
Stored size: 434 Bytes
Contents
var path = require('../internals/path'); var global = require('../internals/global'); var aFunction = function (variable) { return typeof variable == 'function' ? variable : undefined; }; module.exports = function (namespace, method) { return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace]) : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method]; };
Version data entries
29 entries across 28 versions & 9 rubygems