UNPKG

xtreme-ui

Version:

Collection of reusable components that can be used in web projects

7 lines (6 loc) 287 B
const t = (r) => Number.isNaN(r) || r < 0 || r > 1114111 || Math.floor(r) !== r ? "" : String.fromCodePoint(r), e = (r) => t(parseInt(`0x${r}`, 16)), a = (r) => r.charAt(0).toUpperCase() + r.slice(1); export { a as capitalize, t as safeStringFromCodePoint, e as unicodeToString };