What is the best way to convert:
['firstName', 'lastName', 'recordSource']
to
{firstname: 'First Name', lastname: 'Last Name', recordsource: 'Record Source'}
PS: Here, the key of the object should be a lowercased element of the array whereas the value of the key should be the Sentence Case of the array element.