source: imaps-frontend/node_modules/lodash-es/_Stack.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 732 bytes
RevLine 
[d565449]1import ListCache from './_ListCache.js';
2import stackClear from './_stackClear.js';
3import stackDelete from './_stackDelete.js';
4import stackGet from './_stackGet.js';
5import stackHas from './_stackHas.js';
6import stackSet from './_stackSet.js';
7
8/**
9 * Creates a stack cache object to store key-value pairs.
10 *
11 * @private
12 * @constructor
13 * @param {Array} [entries] The key-value pairs to cache.
14 */
15function Stack(entries) {
16 var data = this.__data__ = new ListCache(entries);
17 this.size = data.size;
18}
19
20// Add methods to `Stack`.
21Stack.prototype.clear = stackClear;
22Stack.prototype['delete'] = stackDelete;
23Stack.prototype.get = stackGet;
24Stack.prototype.has = stackHas;
25Stack.prototype.set = stackSet;
26
27export default Stack;
Note: See TracBrowser for help on using the repository browser.