☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-transform-destructuring
/
test
/
fixtures
/
destructuring
/
issue-5090
/
exec.js
☽
☼
packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/issue-5090/exec.js
code
plain
raw
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
const assign = function([...arr], index, value) {
2
arr[index] = value;
3
return arr;
4
}
5
6
const arr = [1, 2, 3];
7
assign(arr, 1, 42);
8
9
expect(arr).toEqual([1, 2, 3]);