I'm trying to write a Javascript function to find indices of all occurrences of a word in a text document. Currently this is what I have-- //function that find
oculus
vector-clock
payfast
androidplot
optional-chaining
css
context-bound
jcr-sql2
propertygrid
asp.net-mvc-controller
jquery-wrap
user-secret
module-map
html-escape
proximitysensor
android-textwatcher
twarc2
mergefield
mosca
fastq
gulp-protractor
jasmine2.0
phpmyadmin
heidisql
mixed-radix
contention
asp.net-mvc-scaffolding
messageui
hdfql
systemevent