mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
1 line
1.7 KiB
JSON
1 line
1.7 KiB
JSON
|
{"ast":null,"code":"import cloneArrayBuffer from './_cloneArrayBuffer.js';\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nexport default cloneTypedArray;","map":{"version":3,"sources":["/app/node_modules/lodash-es/_cloneTypedArray.js"],"names":["cloneArrayBuffer","cloneTypedArray","typedArray","isDeep","buffer","constructor","byteOffset","length"],"mappings":"AAAA,OAAOA,gBAAP,MAA6B,wBAA7B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASC,eAAT,CAAyBC,UAAzB,EAAqCC,MAArC,EAA6C;AAC3C,MAAIC,MAAM,GAAGD,MAAM,GAAGH,gBAAgB,CAACE,UAAU,CAACE,MAAZ,CAAnB,GAAyCF,UAAU,CAACE,MAAvE;AACA,SAAO,IAAIF,UAAU,CAACG,WAAf,CAA2BD,MAA3B,EAAmCF,UAAU,CAACI,UAA9C,EAA0DJ,UAAU,CAACK,MAArE,CAAP;AACD;;AAED,eAAeN,eAAf","sourcesContent":["import cloneArrayBuffer from './_cloneArrayBuffer.js';\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nexport default cloneTypedArray;\n"]},"metadata":{},"sourceType":"module"}
|