I have object having string as keys and values. I want to trim all values of object in one go without need to check every index manually.
So, I have to iterate over object and will trim the value and the update value in object.
Can you share a way to iterate any object in Angulario 5.
let obj = {
"name" => " keshav ",
"prof" => " Engineer "
}
And I would like to this to convert into
let obj = {
"name" => "keshav",
"prof" => "Engineer"
}