RumyantsevMichael/yart

View on GitHub
src/GridTablePackage/MainModule/common/classList.ts

Summary

Maintainability
A
0 mins
Test Coverage
type ClassList = { [className: string]: boolean };

export const classList = (list: ClassList) => {
    return Object.keys(list)
        .filter(className => list[className] === true)
        .join(' ');
};