binary draft
This commit is contained in:
parent
7f9a1e2c7a
commit
973f97cc09
38 changed files with 906 additions and 312 deletions
|
@ -0,0 +1,13 @@
|
|||
function concat(arrays) {
|
||||
// ...your code...
|
||||
}
|
||||
|
||||
let chunks = [
|
||||
new Uint8Array([0, 1, 2]),
|
||||
new Uint8Array([3, 4, 5]),
|
||||
new Uint8Array([6, 7, 8])
|
||||
];
|
||||
|
||||
console.log(Array.from(concat(chunks))); // 0, 1, 2, 3, 4, 5, 6, 7, 8
|
||||
|
||||
console.log(concat(chunks).constructor.name); // Uint8Array
|
Loading…
Add table
Add a link
Reference in a new issue