Skip to content

Instantly share code, notes, and snippets.

@deepak
Created February 2, 2015 08:27
Show Gist options
  • Save deepak/c34932f079f91779871b to your computer and use it in GitHub Desktop.
Save deepak/c34932f079f91779871b to your computer and use it in GitHub Desktop.
how do sets work ? do not see any ES6 runtime ?
let s = new Set([1,2,3]);
s.add("foo");
console.log(s.size);
"use strict";
var s = new Set([1, 2, 3]);
s.add("foo");
console.log(s.size);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment