Platform
Resources
Pricing
Sign in
Get started
Forest Gregg
Workspace
Fork
Public
By
Forest Gregg
Edited
Dec 23, 2023
Fork of
Hello, core-js!
Insert cell
Insert cell
Insert cell
Insert cell
{
Array
.
from
(
new
Set
(
[
1
,
2
,
3
,
2
,
1
]
)
)
;
// => [1, 2, 3]
[
1
,
2
,
3
,
4
,
5
]
.
groupBy
(
(
it
)
=>
it
%
2
)
;
// => { 1: [1, 3, 5], 0: [2, 4] }
Promise
.
resolve
(
42
)
.
then
(
(
x
)
=>
console
.
log
(
x
)
)
;
// => 42
structuredClone
(
new
Set
(
[
1
,
2
,
3
]
)
)
;
// => new Set([1, 2, 3])
queueMicrotask
(
(
)
=>
console
.
log
(
"called as microtask"
)
)
;
}
Insert cell
{
CoreJS
;
Array
.
from
(
new
Set
(
[
1
,
2
,
3
,
2
,
1
]
)
)
;
// => [1, 2, 3]
[
1
,
2
,
3
,
4
,
5
]
.
groupBy
(
(
it
)
=>
it
%
2
)
;
// => { 1: [1, 3, 5], 0: [2, 4] }
Promise
.
resolve
(
42
)
.
then
(
(
x
)
=>
console
.
log
(
x
)
)
;
// => 42
structuredClone
(
new
Set
(
[
1
,
2
,
3
]
)
)
;
// => new Set([1, 2, 3])
queueMicrotask
(
(
)
=>
console
.
log
(
"called as microtask"
)
)
;
}
Insert cell
CoreJS
=
import
(
"https://cdn.skypack.dev/core-js@3.34.0?min"
)
Insert cell
new
Set
(
)
Insert cell
lSet
=
{
CoreJS
;
return
Set
;
}
Insert cell
lSet
.
toString
(
)
Insert cell
lSet
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
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
CoreJS
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
lSet
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML