MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / normalizeForComparison

Function normalizeForComparison

curriculum/src/filter.ts:126–128  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

124]);
125
126function normalizeForComparison(value: string): string {
127 return value.toLowerCase().replace(/[^a-z0-9]+/g, '');
128}
129
130function createBigrams(value: string): Map<string, number> {
131 const bigrams = new Map<string, number>();

Callers 1

closestMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected