UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

10 lines (9 loc) 211 B
"use client"; const r = /[\dA-Fa-f]/; function n(o, e, a) { const t = "&#x" + o.toString(16).toUpperCase(); return a && e && !r.test(String.fromCharCode(e)) ? t : t + ";"; } export { n as toHexadecimal };