Skip to content
  • This project
    • Loading...
  • Sign in

flexydial / hdfc

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • hdfc
  • ..
  • lib
  • normalize.js
  • Manish Mihsra's avatar
    Deleted unwanted files · 09d1b760
    Manish Mihsra committed 2018-02-28 12:58:59 +0000
    09d1b760
normalize.js 271 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
function normalizer (config) {
  if (typeof config === 'string') {
    return {
      module: config
    }
  }
  return config;
};

module.exports = function (config) {
  if (Array.isArray(config)) {
    return config.map(normalizer);
  }
  return normalizer(config);
};