to-class
Builds a string of conditional, deduplicated classNames using whatever you can throw at it.
# npmnpm install to-class # yarnyarn add to-class
Usage
; ; // => 'foo bar'; // => 'foo bar'; // => 'foo bar'; // => 'foo bar'; // => 'foo'; // => 'foo bar baz'
Polyfill
If you need to support browsers <= IE11 you can import the polyfilled version.
;