I have a string: 'lorem,ipsum,dolor,sit,amet' And I want to write a function with a parameter that converts this string passed as a parameter to an object like this:
{
lorem:{
ipsum:{
dolor:{
sit:{
amet: []
}
}
}
}
}
string.split(",")).