párrafo a una sola línea en JavaScript
const paraToSingleLine = (string) => {
const newText = string.replace(/\s+/g, " ");
return newText
};
mrmalik610
const paraToSingleLine = (string) => {
const newText = string.replace(/\s+/g, " ");
return newText
};