Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function listConditions() {
- var used = []
- var counted = []
- EQCSS.data.forEach(item => item.conditions.forEach(cond => used.push(cond.measure)))
- counted = used.reduce((a, b) => a.set(b, a.get(b) + 1 || 1), new Map)
- return console.dir(Array.from(counted).sort((a, b) => b[1] - a[1]))
- }
- listConditions()
Add Comment
Please, Sign In to add comment