source: trip-planner-front/node_modules/which-module/index.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 248 bytes
RevLine 
[6a3a178]1'use strict'
2
3module.exports = function whichModule (exported) {
4 for (var i = 0, files = Object.keys(require.cache), mod; i < files.length; i++) {
5 mod = require.cache[files[i]]
6 if (mod.exports === exported) return mod
7 }
8 return null
9}
Note: See TracBrowser for help on using the repository browser.