code: function arrayToMap(array) {
      var result = {}
      array.forEach(function(v) {
          result[v] = true
      })
      return result
  }
docs: turns an array of values into a an object where those values are all keys that point to 'true'