Answers for "how to ignore spaces or new line in javascriptript"

0

javascript remove final newline from string

// Remove the trailing newline(s) from a string
str.replace(/\n*$/, "");
Posted by: Guest on May-30-2020

Code answers related to "how to ignore spaces or new line in javascriptript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language