Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove last word over a limit javascript

    StringDotter(input){
      while (1<2){
        if (input.length >= 55) {
          input = input.substring(0, input.lastIndexOf(" ")) + "...";
        }
        else{ return input}
      }
    }
 
PREVIOUS NEXT
Tagged: #remove #word #limit #javascript
ADD COMMENT
Topic
Name
6+9 =