code: function normalizeMappings(mappings) {
          if (Array.isArray(mappings)) {
              return mappings.reduce(function (normalizedMappings, key) {
                  normalizedMappings[key] = key;
  
                  return normalizedMappings;
              }, {});
          }
  
          return mappings;
      }
docs: normalize the mappings into a consistent object format