Simplify spread

This commit is contained in:
toasted-nutbread 2020-02-15 12:55:21 -05:00
parent bc94970a46
commit 5587116bae

View File

@ -125,8 +125,7 @@ function dictTermsCompressTags(definitions) {
function dictTermsGroup(definitions, dictionaries) {
const groups = new Map();
for (const definition of definitions) {
const key = [definition.source, definition.expression];
key.push(...definition.reasons);
const key = [definition.source, definition.expression, ...definition.reasons];
if (definition.reading) {
key.push(definition.reading);
}