I have one function and I call it once,But when I run it in browser,It seems to run two times.

```js
function max() {
 console.log( arguments[0] );
 return this.max.apply( Math, Array.from( arguments[0] ) );
}

console.log( max( [1,32,42,1] ) );

/*
This is output of console:
------------------------
[1, 32, 42, 1]
1
-Infinity
*/
```

I want get the maximum value of an array,and I already know how to get it now.I just wonder why this function seems like execute twice and why this function can not get the right result.