CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
_Hash.js33 linesDownload Raw Back to lodash-es
1import hashClear from './_hashClear.js';2import hashDelete from './_hashDelete.js';3import hashGet from './_hashGet.js';4import hashHas from './_hashHas.js';5import hashSet from './_hashSet.js';6 7/**8 * Creates a hash object.9 *10 * @private11 * @constructor12 * @param {Array} [entries] The key-value pairs to cache.13 */14function Hash(entries) {15  var index = -1,16      length = entries == null ? 0 : entries.length;17 18  this.clear();19  while (++index < length) {20    var entry = entries[index];21    this.set(entry[0], entry[1]);22  }23}24 25// Add methods to `Hash`.26Hash.prototype.clear = hashClear;27Hash.prototype['delete'] = hashDelete;28Hash.prototype.get = hashGet;29Hash.prototype.has = hashHas;30Hash.prototype.set = hashSet;31 32export default Hash;33 
basant307/AI_Governance_Project · CoolFace