Move internal modules to “internal” folder.

This commit is contained in:
John-David Dalton
2017-01-10 00:44:25 -08:00
parent 2b05673125
commit 26ea38dcf4
500 changed files with 726 additions and 726 deletions

29
.internal/Stack.js Normal file
View File

@@ -0,0 +1,29 @@
import ListCache from './.internal/ListCache.js';
import stackClear from './.internal/stackClear.js';
import stackDelete from './.internal/stackDelete.js';
import stackGet from './.internal/stackGet.js';
import stackHas from './.internal/stackHas.js';
import stackSet from './.internal/stackSet.js';
/**
* Creates a stack cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
class Stack {
constructor(entries) {
const data = this.__data__ = new ListCache(entries);
this.size = data.size;
}
}
// Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
Stack.prototype.has = stackHas;
Stack.prototype.set = stackSet;
export default Stack;