Published
Edited
Jun 6, 2018
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
let data = [];
for(let d in vector) {
data.push(+d+1);
}
return data;
}
Insert cell
{
let data = [];
vector.forEach(function(d) {
data.push(d+1);
});
return data;
}
Insert cell
{
return vector.map(function(d) { return d+1; } )
}
Insert cell
{
return vector.map( d => d+1 )
}
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