Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

trim string and place ... javascript

// ... after specific length 
const trimString = (string, length = 15)=>(string.slice(0,string.length >= length - 3?length - 3:string.length).padEnd(string.length >= length - 3?length:string.length, '.'))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #trim #string #place #javascript
ADD COMMENT
Topic
Name
9+6 =