10 lines
No EOL
151 B
JavaScript
10 lines
No EOL
151 B
JavaScript
function Component() {
|
|
const x = [];
|
|
for (const item of [1, 2]) {
|
|
if (item === 1) {
|
|
break;
|
|
}
|
|
item |> x.push(%);
|
|
}
|
|
return x;
|
|
} |