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

Function classNames

bind.js:13–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 var hasOwn = {}.hasOwnProperty;
12
13 function classNames () {
14 var classes = '';
15
16 for (var i = 0; i < arguments.length; i++) {
17 var arg = arguments[i];
18 if (arg) {
19 classes = appendClass(classes, parseValue.call(this, arg));
20 }
21 }
22
23 return classes;
24 }
25
26 function parseValue (arg) {
27 if (typeof arg === 'string' || typeof arg === 'number') {

Callers 3

index.mjsFile · 0.50
index.test-d.tsFile · 0.50
bind.mjsFile · 0.50

Calls 1

appendClassFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…