☰
Debian Codegraph
@
1.4.4-1
/
/
.cargo
/
vendor
/
js-sys
/
tests
/
wasm
/
Array.js
☽
☼
.cargo/vendor/js-sys/tests/wasm/Array.js
code
plain
raw
Apache-2.0-Expat
2014, Alex Crichton
debian/copyright
1
// Used for `Array.rs` tests
2
exports.populate_array = function(arr, start, len) {
3
var isBigInt = typeof(arr[0]) === "bigint";
4
for (i = 0; i < len; i++) {
5
arr[i] = isBigInt ? BigInt(start + i) : start + i;
6
}
7
};