diff --git a/Data Structures/es6SetToArray.js b/Data Structures/es6SetToArray.js new file mode 100644 index 0000000..83cf4fe --- /dev/null +++ b/Data Structures/es6SetToArray.js @@ -0,0 +1,7 @@ +// https://www.freecodecamp.org/learn/coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration + +function checkSet(set) { + // Only change code below this line + return [...set]; + // Only change code above this line +}