Published
Edited
Jun 20, 2018
Importers
2 stars
Insert cell
Insert cell
Insert cell
function emojiflag(str) {
var base = parseInt("1F1E6", 16);
return str
.split("")
.map(d => d.codePointAt(0) - "A".codePointAt(0))
.map(d => String.fromCodePoint(base + d))
.join("");
}
Insert cell
Insert cell
Insert cell
Insert cell
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