This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function questionOne(first_arr, second_arr) { | |
var first_set = new Set(first_arr); | |
var second_set = new Set(second_arr); | |
var is_subset = true; | |
second_set.forEach(val => { | |
if (!first_set.has(val)) { | |
is_subset = !is_subset; | |
}; | |
}); |