lepu-test-platform-web/node_modules/babel-plugin-transform-vue-jsx/lib/make-map.js

9 lines
199 B
JavaScript

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]
}