Apply class transform.

This commit is contained in:
John-David Dalton
2017-01-09 14:01:20 -08:00
parent c2208f82dc
commit 648722f1a6
5 changed files with 40 additions and 30 deletions

View File

@@ -12,9 +12,11 @@ import stackSet from './_stackSet.js';
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Stack(entries) {
const data = this.__data__ = new ListCache(entries);
this.size = data.size;
class Stack {
constructor(entries) {
const data = this.__data__ = new ListCache(entries);
this.size = data.size;
}
}
// Add methods to `Stack`.