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
/* Typescript conversion of Ben Nadel's Collection class. | |
Based on the fact that subclassing Array directly does not work very well, | |
at least in Ecmascript versions < 6. Instead, this is based on creating a | |
collection from an array, where the actual methods are added to the array | |
after creation. | |
It works exactly like an array, while at the same time having additional | |
functionality. | |
*/ |