Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import _ from 'lodash';
- function concatStringArray(arr){
- var newarr = [];
- for(let i = 0; i < arr.length; i++){
- newarr.push(arr[i].replace(/[0-9]/g, ''));
- }
- return _.join(newarr, ' ');
- }
- var hey = ["he3llo","js1", "LA4"];
- console.log(concatStringArray(hey));
Add Comment
Please, Sign In to add comment