Last active
April 25, 2018 13:52
-
-
Save gpalsingh/ba5085a93828cd152a615b8c6204f23f to your computer and use it in GitHub Desktop.
set_clear
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const animals = new Set(["rat", "dog", "cat", "horse", "elephant", "rat", "rat", "cat"]); | |
console.log(animals.size); | |
animals.clear(); | |
console.log(animals.size); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment