Answers for "javascript split new line into array"

2

split text by new line javascript

myText.split(/\n/)
Posted by: Guest on January-24-2021
2

split every n character js

var str = 'abcdefghijkl';
console.log(str.match(/.{1,3}/g));
Posted by: Guest on June-27-2020

Code answers related to "javascript split new line into array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language