get unique values of an array in JavaScript

JavaScript

🤖 Code Explanation

The code defines a function that takes an array as an argument and filters out duplicate values. The console.log statement prints the filtered array to the console.

Download SpellBox today