Just to make a note of a little bit of a problem caused by my unconfidence, when we first get into the program we are bound to encounter a variety of methods, array is a very important one, we know that there are many kinds of array sorting array deduplicating methods, One of the simplest and most violent arrays to undo is new Set (arR), but it’s important to note that the return value of new Set () is not an array. Let’s look at the code:

New to the Set ()
Array. The from ()
[...new Set(arr)]