CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_Stack.js28 linesDownload Raw Back to lodash
1var ListCache = require('./_ListCache'),2    stackClear = require('./_stackClear'),3    stackDelete = require('./_stackDelete'),4    stackGet = require('./_stackGet'),5    stackHas = require('./_stackHas'),6    stackSet = require('./_stackSet');7 8/**9 * Creates a stack cache object to store key-value pairs.10 *11 * @private12 * @constructor13 * @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 27module.exports = Stack;28 
basant307/AI_Governance_Project · CoolFace