1.0.6 • Published 5 years ago
@jsxtools/classes v1.0.6
classes
classes returns a normalized string of class names from strings, arrays, or objects.
It is 302 bytes (212 gzipped).
Installation
npm install @jsxtools/classes
Usage
import classes from '@jsxtools/classes';
classes('this', 'that', 'this'); // 'this that'
classes(['this', 'that', 'this']); // 'this that'
classes({ 'this': true, 'that': true, 'else': false }); // 'this that'