mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2025-01-10 09:59:51 +00:00
Cleaning up
This commit is contained in:
parent
46498c2b27
commit
72f13ff0b9
|
@ -3,24 +3,6 @@ layout: layout
|
||||||
---
|
---
|
||||||
|
|
||||||
<%
|
<%
|
||||||
// function langCount(arr) {
|
|
||||||
// let langs = [];
|
|
||||||
// arr.forEach(function(item) {
|
|
||||||
// let lang = item.codeLanguage;
|
|
||||||
// if (!lang) {return};
|
|
||||||
// let check = langs.findIndex(function(x) {return x.language === lang});
|
|
||||||
// if (check>=0) {
|
|
||||||
// langs[check].count +=1;
|
|
||||||
// } else {
|
|
||||||
// let newLang = {};
|
|
||||||
// newLang.language = lang;
|
|
||||||
// newLang.count = 1;
|
|
||||||
// langs.push(newLang);
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// return langs;
|
|
||||||
// }
|
|
||||||
|
|
||||||
function groupByKey(arr, key) {
|
function groupByKey(arr, key) {
|
||||||
let results = [];
|
let results = [];
|
||||||
arr.forEach(function(item) {
|
arr.forEach(function(item) {
|
||||||
|
|
Loading…
Reference in a new issue