source: imaps-frontend/node_modules/rechoir/lib/normalize.js

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

F4 Finalna Verzija

  • Property mode set to 100644
File size: 260 bytes
RevLine 
[79a0317]1function normalizer(config) {
2 if (typeof config === 'string') {
3 return { module: config };
4 }
5 return config;
6}
7
8module.exports = function (config) {
9 if (Array.isArray(config)) {
10 return config.map(normalizer);
11 }
12 return normalizer(config);
13};
Note: See TracBrowser for help on using the repository browser.