mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
2.2 KiB
JSON
1 line
2.2 KiB
JSON
|
{"ast":null,"code":"/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length); // Add properties assigned by `RegExp#exec`.\n\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n\n return result;\n}\n\nexport default initCloneArray;","map":{"version":3,"sources":["/app/node_modules/lodash-es/_initCloneArray.js"],"names":["objectProto","Object","prototype","hasOwnProperty","initCloneArray","array","length","result","constructor","call","index","input"],"mappings":"AAAA;AACA,IAAIA,WAAW,GAAGC,MAAM,CAACC,SAAzB;AAEA;;AACA,IAAIC,cAAc,GAAGH,WAAW,CAACG,cAAjC;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASC,cAAT,CAAwBC,KAAxB,EAA+B;AAC7B,MAAIC,MAAM,GAAGD,KAAK,CAACC,MAAnB;AAAA,MACIC,MAAM,GAAG,IAAIF,KAAK,CAACG,WAAV,CAAsBF,MAAtB,CADb,CAD6B,CAI7B;;AACA,MAAIA,MAAM,IAAI,OAAOD,KAAK,CAAC,CAAD,CAAZ,IAAmB,QAA7B,IAAyCF,cAAc,CAACM,IAAf,CAAoBJ,KAApB,EAA2B,OAA3B,CAA7C,EAAkF;AAChFE,IAAAA,MAAM,CAACG,KAAP,GAAeL,KAAK,CAACK,KAArB;AACAH,IAAAA,MAAM,CAACI,KAAP,GAAeN,KAAK,CAACM,KAArB;AACD;;AACD,SAAOJ,MAAP;AACD;;AAED,eAAeH,cAAf","sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nexport default initCloneArray;\n"]},"metadata":{},"sourceType":"module"}
|