Switched back from lodash.values to lodash.map to prevent the length property of element.classList from being counted as a class