Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/no-array-reduce.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ test({
'a[b.reduce]()',
'a(b.reduce)',
'a.reduce()',
'a?.reduce()',
'a.reduce(1, 2, 3)',
'a.reduce(b, c, d)',
'[][reduce].call()',
Expand Down Expand Up @@ -106,6 +107,7 @@ test({
].flatMap(testCase => [testCase, testCase.replace('reduce', 'reduceRight')]),
invalid: [
'array.reduce((str, item) => str += item, "")',
'array?.reduce((str, item) => str += item, "")',
outdent`
array.reduce((obj, item) => {
obj[item] = null;
Expand Down
Loading