mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-28 03:15:16 +00:00
1 line
1.6 KiB
JSON
1 line
1.6 KiB
JSON
|
{"ast":null,"code":"import isSymbol from './isSymbol.js';\n/** Used as references for various `Number` constants. */\n\nvar INFINITY = 1 / 0;\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n\n var result = value + '';\n return result == '0' && 1 / value == -INFINITY ? '-0' : result;\n}\n\nexport default toKey;","map":{"version":3,"sources":["/app/node_modules/lodash-es/_toKey.js"],"names":["isSymbol","INFINITY","toKey","value","result"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,eAArB;AAEA;;AACA,IAAIC,QAAQ,GAAG,IAAI,CAAnB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASC,KAAT,CAAeC,KAAf,EAAsB;AACpB,MAAI,OAAOA,KAAP,IAAgB,QAAhB,IAA4BH,QAAQ,CAACG,KAAD,CAAxC,EAAiD;AAC/C,WAAOA,KAAP;AACD;;AACD,MAAIC,MAAM,GAAID,KAAK,GAAG,EAAtB;AACA,SAAQC,MAAM,IAAI,GAAV,IAAkB,IAAID,KAAL,IAAe,CAACF,QAAlC,GAA8C,IAA9C,GAAqDG,MAA5D;AACD;;AAED,eAAeF,KAAf","sourcesContent":["import isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default toKey;\n"]},"metadata":{},"sourceType":"module"}
|