documentcloud/underscore — Issue #459: Unnecessary slice?
Author: davidchambers
Created: 2012-02-03 05:26:06+00:00
State: open

The slice here seems unnecessary:

```javascript
(function(){ return _.toArray(arguments).slice(0); })(1, 2, 3);
=> [1, 2, 3]
```

Wouldn't this have the same effect?

```javascript
(function(){ return _.toArray(arguments); })(1, 2, 3);
=> [1, 2, 3]
```

(Taken from the [`toArray`][1] documentation.)

[1]: http://documentcloud.github.com/underscore/#toArray