UNPKG

@aplus-frontend/ui

Version:

11 lines (10 loc) 200 B
const u = (o, l, e, t = 200) => { const n = o.replace( new RegExp(`[${l}]+`, "g"), e ), r = n.split(e); return r.length > t ? r.slice(0, t).join(e) : n; }; export { u as splitValue };