Imagine I have an array like this:
$scope.array = ["ABC", "ABCDEF", "ABCDEFGHI", "ABCAFGKJA"];
Is there a way to transform it into the following format?
$scope.array = ["ABC", "DEF", "GHI", "KJ"];
Apologies if my question is unclear, I'm still getting the hang of the terminology. Cheers!