If input is a string, it is returned. If input is a primitive type, in-built string coersion is used. Otherwise, it returns the result of JSON.stringify().
JSON.stringify()
If input is a string, it is returned. If input is a primitive type, in-built string coersion is used. Otherwise, it returns the result of
JSON.stringify()
.