Function finds top three (or less) most frequent words in provided string of text.
Matches are case-insensitive, and the words in the result are lowercased.
In index.js
change string to the required one and then run:
$ npm run start
There are four tests provided for different cases. To run tests type:
$ npm run test