⪼ Made with 💜 by realpolyglot.com
const uniqode = (start, end) => {
const code = (hex) => parseInt(hex, 16);
const logo = (hex) => String.fromCodePoint(code(hex));
const ends = (hex) => code(hex) === code(end);
const next = (hex) => (code(hex) + 1).toString(16);
let curr = start;
const out = [];
while (!ends(curr)) {
out.push([curr.toUpperCase(), logo(curr)]);
out.push({
code: code(curr),
hex: curr,
logo: logo(curr),
})
curr = next(curr).toUpperCase();
}
return out;
}
const HEX_RANGE = ['1F00', '1FFF'];
console.log(uniqode.apply(null, HEX_RANGE));