☰
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-proposal-pipeline-operator
/
test
/
fixtures
/
minimal
/
destructure-arrow-param
/
exec.js
☽
☼
packages/babel-plugin-proposal-pipeline-operator/test/fixtures/minimal/destructure-arrow-param/exec.js
code
plain
raw
symbols
SCIP
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
// Array destructing
2
const
result = [
0
] |> (([x]) => x);
3
expect
(result).
toBe
(
0
);
4
5
// Object destructuring
6
const
result2 = {
y
:
1
,
z
:
2
} |> (({ y, z }) => y + z);
7
expect
(result2).
toBe
(
3
);