conditional-classnames.js
Helper function adding one or more classnames to an element depending on the result of the condition.
Installation
$ npm install --save conditional-classnames.js
Example
; // Add bar when result is higher than 10. Otherwise remove it.const foo = document;const result = Math * 10 > 10; fooclasslist;