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()
;
Array.from(set).map(() => {});
[...set].map(() => {});
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()
;
Array.from(set).map(() => {});
[...set].map(() => {});