diff --git a/src/pico.ts b/src/pico.ts index d698986..9e2ce29 100644 --- a/src/pico.ts +++ b/src/pico.ts @@ -30,7 +30,7 @@ export function picoSearch( objectsArray: T[], searchTerm: string, keys: Keys, - config: { threshold: number } + config: { threshold: number }, ): T[] { if (!searchTerm || typeof searchTerm !== "string") { return objectsArray; @@ -69,7 +69,7 @@ export function picoSearch( const similarityForObject = weightedAverage( similarityScores, - weightsInOrder + weightsInOrder, ); if (similarityForObject >= threshold) { @@ -94,7 +94,7 @@ function splitWordsAndRank(valueToSearch: string, splitSearchTerm: string[]) { const splitScores = splitSearchTerm.map((searchWord) => { const similarityValues = splitSearchCandidate.map((word) => - getScoreForWord(word, searchWord) + getScoreForWord(word, searchWord), ); const maxSimilarity = Math.max(...similarityValues);