Answers for "how to split a string into chunks nodejs"

0

how to split a string into chunks nodejs

function chunkString(str, length) {
  return str.match(new RegExp('.{1,' + length + '}', 'g'));
}
Posted by: Guest on October-30-2020

Code answers related to "how to split a string into chunks nodejs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language