MCPcopy
hub / github.com/angular-ui/ui-router / makeMap

Function makeMap

test/angular/1.7/angular.js:897–903  ·  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

895 * @returns {object} in the form of {key1:true, key2:true, ...}
896 */
897function makeMap(str) {
898 var obj = {}, items = str.split(','), i;
899 for (i = 0; i < items.length; i++) {
900 obj[items[i]] = true;
901 }
902 return obj;
903}
904
905
906function nodeName_(element) {

Callers 1

$CompileProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected