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

Function makeMap

lib/test/angular/1.8.0/angular.js:898–904  ·  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

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

Callers 1

$CompileProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected