Cleaning up

This commit is contained in:
lostinlight 2023-09-30 00:25:59 +03:00
parent 46498c2b27
commit 72f13ff0b9
1 changed files with 0 additions and 18 deletions

View File

@ -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) {
let results = [];
arr.forEach(function(item) {