Debian Codegraph @

packages/babel-plugin-transform-for-of/test/fixtures/spec-exec/array-break.js

raw symbols SCIP
1 let arr = (() => [1, 2, 3])(); // Disable inference
2 let res = [];
3
4 for (const x of arr) {
5 if (x === 2) break;
6 res.push(x);
7 }
8
9 expect(res).toEqual([1]);