Sign in
android
/
toolchain
/
cargo-deny
/
HEAD
/
.
/
android
/
vendor
/
js-sys-0.3.69
/
tests
/
wasm
/
Array.js
blob: f4d6ab71382053b8d958fddbd9d35e2271f7084d [
file
] [
log
] [
blame
]
// Used for `Array.rs` tests
exports
.
populate_array
=
function
(
arr
,
start
,
len
)
{
var
isBigInt
=
typeof
(
arr
[
0
])
===
"bigint"
;
for
(
i
=
0
;
i
<
len
;
i
++)
{
arr
[
i
]
=
isBigInt
?
BigInt
(
start
+
i
)
:
start
+
i
;
}
};