/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @typechecks static-only */'use strict';/** * Combines multiple className strings into one. */functionjoinClasses(className){varnewClassName=className||'';varargLength=arguments.length;if(argLength>1){for(varindex=1;index<argLength;index++){varnextClass=arguments[index];if(nextClass){newClassName=(newClassName?newClassName+' ':'')+nextClass;}}}returnnewClassName;}module.exports=joinClasses;