Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string splice

newStr = str.split(''); // or newStr = [...str];
newStr.splice(2,5);
newStr = newStr.join('');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #splice
ADD COMMENT
Topic
Name
9+7 =