tools: refactor prefer-primordials · nodejs/node@2e1f1c6 · GitHub
Skip to content

Commit 2e1f1c6

Browse files
aduh95danielleadams
authored andcommitted
tools: refactor prefer-primordials
Use optional chaining to improve code readability and remove use of `Array.prototype.reduce`. PR-URL: #36018 Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
1 parent c6198fd commit 2e1f1c6

2 files changed

Lines changed: 21 additions & 23 deletions

File tree

test/parallel/test-eslint-prefer-primordials.js

Lines changed: 2 additions & 2 deletions

tools/eslint-rules/prefer-primordials.js

Lines changed: 19 additions & 21 deletions

0 commit comments

Comments
 (0)