MCPcopy
hub / github.com/JedWatson/classnames / _classNames

Function _classNames

dedupe.js:78–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 function _classNames () {
79 // don't leak arguments
80 // https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#32-leaking-arguments
81 var len = arguments.length;
82 var args = Array(len);
83 for (var i = 0; i < len; i++) {
84 args[i] = arguments[i];
85 }
86
87 var classSet = new StorageObject();
88 _parseArray(classSet, args);
89
90 var classes = '';
91
92 for (var key in classSet) {
93 if (classSet[key]) {
94 classes && (classes += ' ');
95 classes += key;
96 }
97 }
98
99 return classes;
100 }
101
102 return _classNames;
103 })();

Callers

nothing calls this directly

Calls 1

_parseArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…