×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jul 15, 2017 8:27 AM
Views: 5
Tags: no tags
  1. let mySet = new Set([1,2,3]);
  2. mySet.forEach(setFunction);
  3.  
  4. function setFunction(value,key,callingSet) {
  5.         console.log(key+" "+value);
  6. }
  7.