14 lines
333 B
TypeScript
14 lines
333 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
|
|
export default function joinClasses(
|
|
...args: Array<string | boolean | null | undefined>
|
|
) {
|
|
return args.filter(Boolean).join(' ');
|
|
}
|