In JavaScript, let's say I have an array like this:
["Foo", "Bar", "Baz Foo"] and want to convert it into this: ["Foo", "Bar", "Baz", "Foo"].
In other words, split the array on space and add it as an extra element to the array. I feel like it should be some simple solution to this, but I just don't get it right. Does anyone know how I can achieve this ?