Javascript – Removing nested array from an array
The problem is as follows : We have defined a function, filteredArray, which takes arr, a nested array, and elem as arguments, and returns a new array. elem represents an element that may or may not be present on one…