<!-- Feature Requests: Please read https://github.com/jquery/jquery/wiki/Adding-new-features Most features should start as plugins outside of jQuery. Bug Reports: Note that we only can fix bugs in the latest version of jQuery. Briefly describe the issue you've encountered * What do you expect to happen? * What actually happens? * Which browsers are affected? Provide a *minimal* test case, see https://webkit.org/test-case-reduction/ Use the latest shipping version of jQuery in your test case! We prefer test cases on https://jsbin.com or https://jsfiddle.net Frequently Reported Issues: * Selectors with '#' break: See https://github.com/jquery/jquery/issues/2824 --> ### Description ### It would be great if these examples: ```js var class1 = 'class-one'; var class2 = 'class-two'; $('.element').addClass(class1 + ' ' + class2); $('.element').addClass(class1).addClass(class2); $('.element').addClass([class1, class2].join(' ')); ``` could instead be written like: ```js var class1 = 'class-one'; var class2 = 'class-two'; $('.element').addClass([class1, class2]); ```