Last active
May 17, 2016 01:50
-
-
Save markbrown4/923565d12e7470639ea3d9ec1839d3a5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var things = [{ | |
| name: 'Nope' | |
| }, { | |
| name: 'Nope' | |
| }]; | |
| var selectedThings = new Set(); | |
| function select(thing) { | |
| selectedThings.add(thing); | |
| } | |
| select(things[0]) | |
| select(things[1]) | |
| select(things[1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment