mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
1 line
2.5 KiB
JSON
1 line
2.5 KiB
JSON
{"ast":null,"code":"import assocIndexOf from './_assocIndexOf.js';\n/** Used for built-in method references. */\n\nvar arrayProto = Array.prototype;\n/** Built-in value references. */\n\nvar splice = arrayProto.splice;\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n\n var lastIndex = data.length - 1;\n\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n\n --this.size;\n return true;\n}\n\nexport default listCacheDelete;","map":{"version":3,"sources":["/app/node_modules/lodash-es/_listCacheDelete.js"],"names":["assocIndexOf","arrayProto","Array","prototype","splice","listCacheDelete","key","data","__data__","index","lastIndex","length","pop","call","size"],"mappings":"AAAA,OAAOA,YAAP,MAAyB,oBAAzB;AAEA;;AACA,IAAIC,UAAU,GAAGC,KAAK,CAACC,SAAvB;AAEA;;AACA,IAAIC,MAAM,GAAGH,UAAU,CAACG,MAAxB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASC,eAAT,CAAyBC,GAAzB,EAA8B;AAC5B,MAAIC,IAAI,GAAG,KAAKC,QAAhB;AAAA,MACIC,KAAK,GAAGT,YAAY,CAACO,IAAD,EAAOD,GAAP,CADxB;;AAGA,MAAIG,KAAK,GAAG,CAAZ,EAAe;AACb,WAAO,KAAP;AACD;;AACD,MAAIC,SAAS,GAAGH,IAAI,CAACI,MAAL,GAAc,CAA9B;;AACA,MAAIF,KAAK,IAAIC,SAAb,EAAwB;AACtBH,IAAAA,IAAI,CAACK,GAAL;AACD,GAFD,MAEO;AACLR,IAAAA,MAAM,CAACS,IAAP,CAAYN,IAAZ,EAAkBE,KAAlB,EAAyB,CAAzB;AACD;;AACD,IAAE,KAAKK,IAAP;AACA,SAAO,IAAP;AACD;;AAED,eAAeT,eAAf","sourcesContent":["import assocIndexOf from './_assocIndexOf.js';\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nexport default listCacheDelete;\n"]},"metadata":{},"sourceType":"module"} |