Skip to content

Instantly share code, notes, and snippets.

@jquense
Created November 13, 2014 19:20
Show Gist options
  • Save jquense/051207cee99ec7c643a5 to your computer and use it in GitHub Desktop.
Save jquense/051207cee99ec7c643a5 to your computer and use it in GitHub Desktop.
join classes
function joinClasses(){
var args = [].slice.call(arguments, 0)
return args.reduce(function(current, next){
if(!current) return next
if( next) return (current ? current + " " : "") + next
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment