From c5b1dc282524e39fefc46f805633e8000255dc89 Mon Sep 17 00:00:00 2001 From: Manish Date: Wed, 23 Aug 2023 11:22:25 +1000 Subject: [PATCH] Data Structures: Use Spread and Notes for ES5 Set() Integration --- Data Structures/es6SetToArray.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Data Structures/es6SetToArray.js 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 +}