I need a method / algorithm found in array1
strings of array2
and create a new array ( array3
) with all stings separated from array2
.
For example
array1 = ['azxsdfghjkazxfgtfgt'];
The array2 would look like this:
array2 = ['azx', 'sdf', 'ghjk', 'fgt'];
array3 would look like this:
array3 = ['azx','sdf','ghjk', 'azx', 'fgt', 'fgt'];