chore: simpler charts

This commit is contained in:
Cory Dransfeldt 2023-07-22 07:59:49 -07:00
parent e8b8bb24b5
commit eaa43c41af
No known key found for this signature in database
7 changed files with 59 additions and 1092 deletions

View file

@ -1,3 +0,0 @@
module.exports = {
getKeyByValue: (object, value) => Object.keys(object).find((key) => object[key].includes(value)),
}

View file

@ -29,4 +29,5 @@ module.exports = {
/-\s*(?:single|ep)\s*|(\[|\()(Deluxe Edition|Special Edition|Remastered|Full Dynamic Range Edition|Anniversary Edition)(\]|\))/gi
return media.replace(denyList, '').trim()
},
sortByPlays: (array) => Object.values(array).sort((a, b) => b.plays - a.plays),
}