I\'m trying to write a simple function that can trim whitespaces from arrays. When I call the function the result I get is undefined.
Code below
functi