Set

A set is a dynamic data structure with NO duplicates. A set is unordered, and has no index. Sets can store any types of values (primitive or objects).

Methods for a Set: .has(), .add(), .delete(), .size(), .cleare()

Used for: easily removes all duplicates from an array

const myArray = ['Bill','Bob','Bob','Ben']

--

--