Skip to content

A micro-lib accepts n arguments of CSS classnames, removes falsey args & joins them into a space-separated string

License

Notifications You must be signed in to change notification settings

tuxsudo/join-classnames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Join Class Names

A micro function that accepts n arguments, removes falsey & non-string args, and joins them separated by space.

import join from 'join-classnames';

join('a', true===false & 'b', 'c'); // "a c";

Micro? the docs have more chars than the code ¯\(ツ)

About

A micro-lib accepts n arguments of CSS classnames, removes falsey args & joins them into a space-separated string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published