Say I have this string/array:
'users.data.object.email' / [users, data, object, email]
How can I convert this string/array to a javascript object?
For example from the above string/array, the object would look like so:
{user: {
data: {
object: {
email: {}
}
}
}