freeCodeCamp/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es...

702 B

id title challengeType videoUrl localeTitle
587d8255367417b2b2512c73 Use Spread and Notes for ES5 Set() Integration 1

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert((function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]})(), "Your Set was returned correctly!");'

Challenge Seed

function checkSet(set){
   // change code below this line

   // change code above this line
}

Solution

// solution required