параграф на одну строку в JavaScript
const paraToSingleLine = (string) => {
const newText = string.replace(/\s+/g, " ");
return newText
};
mrmalik610
const paraToSingleLine = (string) => {
const newText = string.replace(/\s+/g, " ");
return newText
};