diff options
Diffstat (limited to 'util/count.js')
-rw-r--r-- | util/count.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/count.js b/util/count.js index 24c11b0..d4c0919 100644 --- a/util/count.js +++ b/util/count.js @@ -1,4 +1,4 @@ -module.exports = function count(arr) { +export default function count(arr) { // Counts the number of times the items of an array appear (only on the top // level; it doesn't search through nested arrays!). Returns a map of // item -> count. |