Sun Jun 18 2023 15:05:28 GMT+0000 (Coordinated Universal Time)
Saved by @pratik1021
let Array1 = [1,1,2,2,3,3,4,4] let Array2 = new Set(Array1) console.log(Array2) //Expected Output : Set(4) {1, 2, 3, 4}
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments