Fix typos
This commit is contained in:
@ -5,7 +5,7 @@ tags: array,beginner
|
||||
|
||||
Checks if all elements in an array are unique.
|
||||
|
||||
- Create a new `Set` from the mapped values to keep only unique occurences.
|
||||
- Create a new `Set` from the mapped values to keep only unique occurrences.
|
||||
- Use `Array.prototype.length` and `Set.prototype.size` to compare the length of the unique values to the original array.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user