Friday, 27 March, 2020 UTC


Summary

In this lesson you will learn how to remove duplicates from the flat array which is a common coding challenge for beginner JavaScript interviews. We will learn how to write a duplicate removal function using functional programming approach with filter. The array filter method allows you to create a new array out of elements that pass a certain condition within the filter. You'll see how we can use `indexOf` to filter out any duplicates.