Published
Edited
Apr 24, 2018
Insert cell
Insert cell
function isIsogram(str) {
const original = str.split('');
const uniques = original.reduce((acc, cur) => {
if (!acc.includes(cur)) acc.push(cur)
return acc;
}, [])
return uniques.length === original.length ? true : false;
}
Insert cell
Insert cell
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