main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
260 bytes
|
Line | |
---|
1 | function normalizer(config) {
|
---|
2 | if (typeof config === 'string') {
|
---|
3 | return { module: config };
|
---|
4 | }
|
---|
5 | return config;
|
---|
6 | }
|
---|
7 |
|
---|
8 | module.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.