Published
Edited
Jun 22, 2022
2 stars
Insert cell
Insert cell
"Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)"
Insert cell
Insert cell
new Date("Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)")
Insert cell
Insert cell
String(new Date("Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)"))
Insert cell
Insert cell
String(new Date("Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)"))
=== "Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)"
Insert cell
Insert cell
Insert cell
date = "Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)"
Insert cell
Insert cell
String(new Date(date)) === date
Insert cell
Insert cell
(d => String(new Date(d)) === d)("Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)")
Insert cell
Insert cell
((d) => [
d,
String(new Date(d)),
String(new Date(d)) === d
])(
"Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)"
)
Insert cell
Insert cell
((a, b) => [a, b, a === b])
(...((d) => [d, String(new Date(d))])
("Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)"))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
inspect = expr => {
const statements = [];
const log = d => (statements.push(d), d)
statements.push(expr(log));
return statements;
}
Insert cell
Insert cell
inspect((log) => {
const str = "Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)";
return log(str) === log(String(new Date(str)));
})
Insert cell
Insert cell
inspect((log) =>
((d) => log(String(new Date(d))) === log(d))(
"Wed Oct 11 2017 05:02:00 GMT+0000 (Coordinated Universal Time)"
)
)
Insert cell
Insert cell
Insert cell
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