aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-15 12:55:21 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-22 14:37:10 -0500
commit5587116baef8e243412eb9e5ad9690284944a7a3 (patch)
treef1695019609883aa5eb242a6c259168bf1ab276e /ext/bg
parentbc94970a46171c2cd0f5feb272811487e2e1e110 (diff)
Simplify spread
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/dictionary.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index afdd71a0..52302e9b 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -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);
}