MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / makeMap

Function makeMap

code/songhop/www/lib/angular/angular.js:683–688  ·  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

681 * @returns {object} in the form of {key1:true, key2:true, ...}
682 */
683function makeMap(str) {
684 var obj = {}, items = str.split(","), i;
685 for (i = 0; i < items.length; i++)
686 obj[ items[i] ] = true;
687 return obj;
688}
689
690
691function nodeName_(element) {

Callers 1

$CompileProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected