Posts by Adry • 33 points
2 posts
-
0
votes0
answers149
viewsQ: Check for the word in the string using string array and separate the string in a new array
I’m in a problem where I want a string to become an array with separate words, only the code returns duplicate arrays var string = 'xicara,cafecafe'; var array1 = ['casa', 'xicara', 'xicarada',…
-
2
votes1
answer97
viewsQ: Compare a string array with another string array and create a new array
I need a method/algorithm to find in array1 strings of array2 and create a new array (array3) with all Stings separated from array2. For example array1 = ['azxsdfghjkazxfgtfgt']; To array2 would…