|
|
|
|
|
by runarberg
2519 days ago
|
|
> In general the spread operator should only be used for forwarding arguments not for array operations. Not quite. You should also use the spread operator when you are spreading an iterable into an array: const unique = [...new Set(arr)];
|
|