Published
Edited
Apr 7, 2018
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function mapText(txt)
{
var mpTxt = new Array(getLargest);
for (var j = 0 ; j < getLargest ; j++){
mpTxt[j] = 0;
}
const spTxt = txt.split(/\W+/);
for (var j = 0 ; j < spTxt.length ; j++){
mpTxt[j] = wordidx[spTxt[j]];
}
return mpTxt
}
Insert cell
mapText('hello')
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more