7be4cc6f93d24adea76ea726a9e374bb6082237c8854b7c5f611d088cd9bc464.json 596 B

1
  1. {"ast":null,"code":"import getMapData from './_getMapData.js';\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\nexport default mapCacheSet;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}