I'm trying to remove the extra space inside of the object value.
const object = {
primaryInformation: {
firstName: "John Doe",
lastName: "Doe Space"
}
}
Is there any simplest way to remove the extra space between the words of object value using map
?
Expected Output
firstName: "John Doe",
lastName: "Doe Space"