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

Function appendClass

index.js:54–64  ·  view source on GitHub ↗
(value, newClass)

Source from the content-addressed store, hash-verified

52 }
53
54 function appendClass (value, newClass) {
55 if (!newClass) {
56 return value;
57 }
58
59 if (value) {
60 return value + ' ' + newClass;
61 }
62
63 return value + newClass;
64 }
65
66 if (typeof module !== 'undefined' && module.exports) {
67 classNames.default = classNames;

Callers 2

classNamesFunction · 0.70
parseValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…