--- id: 587d8255367417b2b2512c72 title: Use .has and .size on an ES6 Set challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert((function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]})(), "checkSet([4, 5, 6], 3) should return [ false, 3 ]");' ```
## Challenge Seed
```js function checkSet(arrToBeSet, checkValue){ // change code below this line // change code above this line } checkSet([ 1, 2, 3], 2); // Should return [ true, 3 ] ```
## Solution
```js // solution required ```