Public
Edited
Mar 15, 2023
Insert cell
Insert cell
parseInt(undefined)
Insert cell
parseFloat(
(undefined ?? "")
.replace(",", ".")
.replace("°C", "")
)
Insert cell
function parseDuration(str) {
if (typeof str === 'undefined') { return undefined }
let duration = str ?? "0:0";

const [min, sec] = duration.split(":");
return duration = parseInt(min) * 60 + parseInt(sec);
}
Insert cell
parseDuration(undefined)
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