all files / util/ makeMap.js

25% Statements 1/4
100% Branches 0/0
0% Functions 0/2
25% Lines 1/4
1 2 3 4 5 6 7            
export default function makeMap(keys) {
  return keys.reduce(function(obj, key) {
    obj[key] = true
    return obj
  }, {})
}