CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
_hashSet.js24 linesDownload Raw Back to lodash
1var nativeCreate = require('./_nativeCreate');2 3/** Used to stand-in for `undefined` hash values. */4var HASH_UNDEFINED = '__lodash_hash_undefined__';5 6/**7 * Sets the hash `key` to `value`.8 *9 * @private10 * @name set11 * @memberOf Hash12 * @param {string} key The key of the value to set.13 * @param {*} value The value to set.14 * @returns {Object} Returns the hash instance.15 */16function hashSet(key, value) {17  var data = this.__data__;18  this.size += this.has(key) ? 0 : 1;19  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;20  return this;21}22 23module.exports = hashSet;24 
basant307/AI_Governance_Project · CoolFace