UNPKG
@jsonjoy.com/util
Version:
latest (18.28.0)
18.28.0
18.24.0
18.23.0
18.22.0
18.21.0
18.20.0
18.19.0
18.18.0
18.15.0
18.14.0
18.13.0
18.12.0
18.11.0
18.10.0
18.9.0
18.8.0
18.7.0
18.6.0
18.5.0
18.1.0
18.0.0
17.67.0
17.65.0
17.64.0
17.63.0
17.62.0
17.61.1
17.61.0
17.60.0
17.59.0
1.9.0
1.8.1
1.8.0
1.7.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
Various helper utilities
github.com/jsonjoy-com/util
jsonjoy-com/util
@jsonjoy.com/util
/
lib
/
buffers
/
copy.js
10 lines
•
261 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
copy
=
void
0
;
const
copy
= (
arr
) => {
const
dupe =
new
Uint8Array
(arr.
length
); dupe.
set
(arr);
return
dupe; };
exports
.
copy
= copy;
//# sourceMappingURL=copy.js.map