Formatting

This commit is contained in:
DominikDoom
2023-09-09 14:43:55 +02:00
parent 80b47c61bb
commit 4d4f23e551
3 changed files with 24 additions and 24 deletions

View File

@@ -41,7 +41,7 @@ function parseCSV(str) {
async function readFile(filePath, json = false, cache = false) {
if (!cache)
filePath += `?${new Date().getTime()}`;
let response = await fetch(`file=${filePath}`);
if (response.status != 200) {
@@ -146,7 +146,7 @@ function flatten(obj, roots = [], sep = ".") {
{}
);
}
// Sliding window function to get possible combination groups of an array
function toNgrams(inputArray, size) {