Does it mutate 😱
Array.prototype.toString
No mutation
Description
The toString()
method of Array
instances returns a string representing the
specified array and its elements.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString
Example
const array1 = [1, 2, 'a', '1a'];
console.log(array1.toString());
// Expected output: "1,2,a,1a"