MCPcopy Index your code
hub / github.com/TruthHun/BookStack / makeMap

Function makeMap

static/vuejs/vue.js:38–50  ·  view source on GitHub ↗

* Make a map and return a function for checking if a key * is in that map.

(
  str,
  expectsLowerCase
)

Source from the content-addressed store, hash-verified

36 * is in that map.
37 */
38function makeMap (
39 str,
40 expectsLowerCase
41) {
42 var map = Object.create(null);
43 var list = str.split(',');
44 for (var i = 0; i < list.length; i++) {
45 map[list[i]] = true;
46 }
47 return expectsLowerCase
48 ? function (val) { return map[val.toLowerCase()]; }
49 : function (val) { return map[val]; }
50}
51
52/**
53 * Check if a tag is a built-in tag.

Callers 3

vue.jsFile · 0.70
createPatchFunctionFunction · 0.70
genStaticKeys$1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected