Answers for "trim words js"

48

javascript trim

var str=" I have outer spaces ";
var cleanStr=str.trim();//trim() returns string with outer spaces removed
Posted by: Guest on June-27-2019
0

trim text and add ... js

const truncate = (input) => input.length > 5 ? `${input.substring(0, 5)}...` : input;
Posted by: Guest on November-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language