mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Apply let/const transform.
This commit is contained in:
@@ -8,7 +8,7 @@ import Uint8Array from './_Uint8Array.js';
|
||||
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
||||
*/
|
||||
function cloneArrayBuffer(arrayBuffer) {
|
||||
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
||||
const result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
||||
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user