Actions
Task #106201
openImprove code readability JS Array.prototype.reduce
Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2025-02-18
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
const foo = [1, 2, 3];
// prints [ 1, 2, 3 ]
console.log(foo);
const bar = foo.reduce(
(foo /* <-- better name this 'fooAccumulator' */, node) => {
foo.push(node + 'reduced');
return foo;
},
[]
);
// prints [ 1, 2, 3 ]
console.log(foo);
// prints [ '1reduced', '2reduced', '3reduced' ]
console.log(bar);
Updated by Gerrit Code Review 25 days ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88264
Updated by Ayke Halder 25 days ago
- Subject changed from Improve code readability JS Object.reduce to Improve code readability JS Array.prototype.reduce
Actions