@hakit/core
Version:
A collection of React hooks and helpers for Home Assistant to easily communicate with the Home Assistant WebSocket API.
12 lines (11 loc) • 495 B
JavaScript
import { join as o, map as i, split as r, capitalize as a } from "lodash";
function m(t) {
return t ? o(i(r(String(t), "_"), a), " ") : "";
}
const c = (t) => new Intl.Collator(t, { sensitivity: "accent", numeric: !0 }), l = (t) => new Intl.Collator(t, { numeric: !0 }), p = (t, n, e = void 0) => l(e).compare(t, n), u = (t, n, e = void 0) => c(e).compare(t, n);
export {
u as caseInsensitiveStringCompare,
p as stringCompare,
m as toReadableString
};
//# sourceMappingURL=string.js.map