The String valueOf() method

🆕 🔜 Check this out if you dream of running a solo Internet business 🏖️

Find out all about the JavaScript valueOf() method of a string

Returns the string representation of the current String object:

const str = new String('Test')
str.valueOf() //'Test'

Same as toString().