Created
May 15, 2013 21:49
-
-
Save rxaviers/5587698 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Files() { | |
| var array = []; | |
| array.push.apply( array, arguments ); | |
| array.__proto__ = Files.prototype; | |
| return array; | |
| } | |
| Files.prototype = []; | |
| Files.prototype.into = function() { | |
| return this[ this.length - 1 ]; | |
| }; |
rwaldron
commented
May 16, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment