Is there a way to trim all properties of an object? In other words, can I change that:
{a: ' a', b: 'b ', c: ' c '}
To this:
{a: 'a', b: 'b', c: 'c'}
It seems I can't map an object, so how can I apply a function to all properties an get the object back?