Disallow simple recursive function.
function foo(bar) {
if (bar.baz) {
return foo(bar.baz);
}
return bar;
}
function foo(bar) {
while (bar.baz) {
bar = bar.baz:
}
return bar;
}
function foo(bar) {
for (; bar.baz; bar = bar.baz) {}
return bar;
}
function foo(bar) {
if (Array.isArray(bar)) {
return bar.map(baz => foo(bar));
}
return bar;
}
I'm not sure how to define "simple".
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too