jorgebucaran / classcat

Build a class attribute string quickly
MIT License
905 stars 22 forks source link

What's the difference between Classcat and classNames? #23

Closed jorgebucaran closed 6 years ago

jorgebucaran commented 6 years ago

Classcat is orders of magnitude faster.

Also, classNames accepts a variable number of arguments whereas Classcat a single argument.

cc("foo", "bar", "baz") // => foo

To work around this, wrap the arguments inside an array.

cc(["foo", "bar", "baz"]) // => foo bar baz