flatiron/utile — pull request #10 by indexzero (2012-05-15 12:25:48+00:00)
Title: Avoid the need for `utile.args(arguments).array` by using `Object.defineProperty`

Discussed this with @marak over gchat the other day and decided to implement it.

imho we should be optimizing for the simple case where someone simply wants to call `Array.prototype.slice.call(arguments)`. Check the diff on the tests for all the details of what's changing.

**Usage:**

``` js
function getArgs() {
//
// [ 'a', 'b', 'c' ]
//
console.dir(utile.args(arguments));

//
// All additional properties not enumerable.
// e.g.
//

//
// function ok() { console.log('ok');
//
console.dir(utile.args(arguments).cb.toString());
}
```