Published
Edited
Mar 24, 2019
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
map.filter((_, key) => key >= min && key <= max).toJS()
Insert cell
Insert cell
{
let range = Array.apply(0, Array(max - min + 1)).map((_, index) => index + min);
return range.reduce((acc, key) => {
return map.has(key) ?
acc.set(key, map.get(key)) :
acc;
}, Immutable.Map()).toJSON()
}
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