Skip to content

Instantly share code, notes, and snippets.

View abhinemani's full-sized avatar

Abhi Nemani abhinemani

View GitHub Profile
@abhinemani
abhinemani / WordFreq.js
Created November 7, 2022 23:32 — forked from frio80/WordFreq.js
Word Frequency in JavaScript
/**
*
* This function takes a list of words and a specified text and returns the frequency of each word.
* The program processes in timed chunks as to not lock the browser up
*
* @param {Array} words This is the list of words to match against
* @param {String} text This is the text to match
* @param {Function} This is the callback function
*
* TODO: