Looking for a solution to split an array element in a web template, where the size of the array varies per page. The array is in the format: ['John gray','Matt jones', 'Frank white']. The goal is to separate this array into two arrays regardless of its size - one containing the first names: ['John','Matt','Frank'] and another containing the last names: ['gray','jones','white']. While the split() method works for strings, I have not found much information on splitting arrays in this manner. Any suggestions or ideas?