freeCodeCamp/Data Structures/es6SetToArray.js

8 lines
244 B
JavaScript
Raw Normal View History

// 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
}