Published
Edited
Apr 12, 2021
Insert cell
Insert cell
Insert cell
Insert cell
// some starter code that sorts alphabetically
// and also sorts the entire object I want to ignore the first two keys
/* cleaned_data = Object.keys(data).sort().reduce(
(obj, key) => {
obj[key] = data[key];
return obj;
},
{}
);
*/
Insert cell
desired_output = [
{one: 1, two: 2, a: "a", b:"b", c:"c"},
{one: 1, two: 2, c:"c", b:"b", a:"a"},
{one: 1, two: 2, b:"b", c:"c", a:"a"}
]
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