Enforces the use of the spread operator over Array.from()
. This rule adds on to the built-in prefer-spread rule, which only flags uses of .apply()
. Does not enforce for TypedArray.from()
;
This rule is fixable.
Array.from(set).map(() => {});
[...set].map(() => {});