Files
node/lib
Antoine du Hamel 26288ff25e tools: add ESLint rule no-array-destructuring
Iterating over arrays should be avoided because it relies on
user-mutable global methods (`Array.prototype[Symbol.iterator]`
and `%ArrayIteratorPrototype%.next`), we should instead use
other alternatives. This commit adds a rule that disallow
array destructuring syntax in favor of object destructuring syntax.
Note that you can ignore this rule if you are using
the array destructuring syntax over a safe iterable, or
actually want to iterate over a user-provided object.

PR-URL: https://github.com/nodejs/node/pull/36818
Reviewed-By: Rich Trott <rtrott@gmail.com>
2021-03-03 19:53:28 +01:00
..
2020-05-24 03:26:21 +02:00
2020-02-18 22:15:50 -08:00
2020-10-21 01:26:34 +02:00
2021-02-11 19:30:28 +05:30
2021-01-22 19:54:34 -08:00
2021-01-22 19:56:34 -08:00
2021-03-03 19:53:24 +01:00
2020-12-29 16:06:05 +01:00
2021-02-11 19:30:28 +05:30
2021-01-30 07:49:28 -08:00
2021-03-03 19:53:24 +01:00
2021-01-28 12:53:50 +01:00
2021-03-03 19:53:24 +01:00
…
2021-02-11 19:30:28 +05:30
2020-12-28 19:47:41 +00:00