Public
Edited
Dec 23, 2023
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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more