diff options
Diffstat (limited to 'util/string.ts')
-rw-r--r-- | util/string.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/string.ts b/util/string.ts index 4704d03..250a304 100644 --- a/util/string.ts +++ b/util/string.ts @@ -103,7 +103,7 @@ String.prototype.range = function() { } String.prototype.rangeTally = function() { - var tally = Object.keys(UnicodeRange).reduce((a: any,c) => (a[c] = 0, a), {}) as RangeTally; + var tally = Object.values(UnicodeRange).reduce((a: any,c) => (a[c] = 0, a), {}) as RangeTally; for (var char of this) tally[char.range()]++; return tally; }; |