aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babel-plugin-transform-vue-jsx/lib/make-map.js
blob: 0665cf5973a99756387a1d32a0101d6731b38e2d (plain)
1
2
3
4
5
6
7
8
module.exports = function makeMap (str) {
  var map = Object.create(null)
  var list = str.split(',')
  for (var i = 0; i < list.length; i++) {
    map[list[i]] = true
  }
  return val => map[val]
}