Debian Codegraph @

packages/babel-plugin-proposal-pipeline-operator/test/fixtures/minimal/destructure-arrow-param/input.js

raw symbols SCIP
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(result).toBe(3);