MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / makeMap

Function makeMap

web/static/bower_components/angular/angular.js:783–789  ·  view source on GitHub ↗

* @param str 'key1,key2,...' * @returns {object} in the form of {key1:true, key2:true, ...}

(str)

Source from the content-addressed store, hash-verified

781 * @returns {object} in the form of {key1:true, key2:true, ...}
782 */
783function makeMap(str) {
784 var obj = {}, items = str.split(","), i;
785 for (i = 0; i < items.length; i++) {
786 obj[items[i]] = true;
787 }
788 return obj;
789}
790
791
792function nodeName_(element) {

Callers 1

$CompileProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected