mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
1 line
1.8 KiB
JSON
1 line
1.8 KiB
JSON
|
{"ast":null,"code":"import assocIndexOf from './_assocIndexOf.js';\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n\n return this;\n}\n\nexport default listCacheSet;","map":{"version":3,"sources":["/app/node_modules/lodash-es/_listCacheSet.js"],"names":["assocIndexOf","listCacheSet","key","value","data","__data__","index","size","push"],"mappings":"AAAA,OAAOA,YAAP,MAAyB,oBAAzB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASC,YAAT,CAAsBC,GAAtB,EAA2BC,KAA3B,EAAkC;AAChC,MAAIC,IAAI,GAAG,KAAKC,QAAhB;AAAA,MACIC,KAAK,GAAGN,YAAY,CAACI,IAAD,EAAOF,GAAP,CADxB;;AAGA,MAAII,KAAK,GAAG,CAAZ,EAAe;AACb,MAAE,KAAKC,IAAP;AACAH,IAAAA,IAAI,CAACI,IAAL,CAAU,CAACN,GAAD,EAAMC,KAAN,CAAV;AACD,GAHD,MAGO;AACLC,IAAAA,IAAI,CAACE,KAAD,CAAJ,CAAY,CAAZ,IAAiBH,KAAjB;AACD;;AACD,SAAO,IAAP;AACD;;AAED,eAAeF,YAAf","sourcesContent":["import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nexport default listCacheSet;\n"]},"metadata":{},"sourceType":"module"}
|