Closed mikegowen closed 6 years ago
Could you use has method in the add method?
has
add
add(value) { if (!this.has(value)) { this.members.push(value); } }
vs
add(value) { if (!this.members.includes(value)) { this.members.push(value); } }
It's possible that you deliberated wanted those two methods untied from each other. If so, ignore.
That's a good idea. See attached patch.
Could you use
has
method in theadd
method?vs
It's possible that you deliberated wanted those two methods untied from each other. If so, ignore.