- Remove multiline string into one-line
function stringToOneLine(str) { return String(str).replace(/[\t\r\n ]+/g, ' ').trim() }
Created
February 21, 2023 07:52
-
-
Save itsdonnix/349c37833de333fc833fcbfd9fadecbf to your computer and use it in GitHub Desktop.
Javascript Snippets
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment