paulmillr/es6-shim — Issue #2: Array.of() is incorrectly implemented.
Author: rwldrn
Created: 2011-12-25 01:52:48+00:00
State: open

The implementation given is actually a casual version of `Array.from` and the tests you wrote are also incorrectly testing `Array.of` as though it were `Array.from`

Example of correct behaviour:

```javascript

Array.of( 1, 2, 3 );
// [ 1, 2, 3 ];

```

There are tests that assert:

```javascript
Array.of( arguments ) === [];

```

... which is incorrect. That would be correct for `Array.from(arguments)`; `Array.of(arguments)` should actually return `[ arguments ]`;