diff options
Diffstat (limited to 'common/entities.js')
-rw-r--r-- | common/entities.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/entities.js b/common/entities.js index 3ccbf04..96de5cb 100644 --- a/common/entities.js +++ b/common/entities.js @@ -74,7 +74,7 @@ function item_id_string(...args) { #EXPORT item_id_string /* vers should be an array of comparable values. Return the greatest one. */ -const max = vals => Array.reduce(vals, (v1, v2) => v1 > v2 ? v1 : v2); +const max = vals => vals.reduce((v1, v2) => v1 > v2 ? v1 : v2); /* * versioned_item should be a dict with keys being version strings and values @@ -167,6 +167,6 @@ const version_reductor = (acc, n) => [...(n || acc.length ? [n] : []), ...acc]; * * Returns a *new* array. Doesn't modify its argument. */ -const normalize_version = ver => Array.reduceRight(ver, version_reductor, []); +const normalize_version = ver => ver.reduceRight(version_reductor, []); #ENDIF |