Answers for "js limit text length"

5

js string limit length

string.substring(0,lengthRequired+1);
Posted by: Guest on February-11-2021
0

javascript set max length of string

String.prototype.trimEllip = function (length) {
  return this.length > length ? this.substring(0, length) + "..." : this;
}
Posted by: Guest on January-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language