Platform
Resources
Pricing
Sign in
Get started
Maya Gans
Workspace
Fork
Published
By
Maya Gans
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
lookup
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
desired_output
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML