web/plugins/HyphenateString/page.jsx

5 lines
105 B
React
Raw Permalink Normal View History

2024-04-12 19:00:01 +03:30
const hyphenateString = (str) => {
return str.split(" ").join("-");
};
export default hyphenateString;