0 / 60 seg.

To remove spaces at the beginning and end of a string, what is the correct method?

const str = "  hello  ";