What is the code to be used to trim whitespaces?

What is the code to be used to trim whitespaces? Correct Answer let trimmed = (l.trim() for (l in lines));

The various types of trim functions are trimLeft(), trimRight() and trim().can use the above code to trim whitespaces and filter out comments and blank lines.
Bissoy MCQ

Related Questions

What is the code to be used to trim whitespaces ?