source: trip-planner-front/node_modules/@angular/compiler-cli/node_modules/yargs/build/lib/utils/which-module.js@ e29cc2e

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

primeNG components

  • Property mode set to 100644
File size: 321 bytes
Line 
1export default function whichModule(exported) {
2 if (typeof require === 'undefined')
3 return null;
4 for (let i = 0, files = Object.keys(require.cache), mod; i < files.length; i++) {
5 mod = require.cache[files[i]];
6 if (mod.exports === exported)
7 return mod;
8 }
9 return null;
10}
Note: See TracBrowser for help on using the repository browser.