UNPKG

ideaz-element

Version:

<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>

17 lines (16 loc) 388 B
import { isObject as n } from "./is.mjs"; import { toKebabCase as s } from "./string.mjs"; const m = (e) => { if (!n(e)) return {}; const r = {}; return Object.keys(e).forEach((t) => { if (t.startsWith("on")) { const o = s(t).slice(3, s(t).length); r[o] = e[t]; } }), r; }; export { m as getEventsFromCamel }; //# sourceMappingURL=getEventsFromCamel.mjs.map