securityos/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs

7 lines
163 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
/**
* Convert camelCase to dash-case properties.
*/
const camelToDash = (str) => str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
export { camelToDash };