(Solved):Write a function that takes an array and returns a new array with numbers that are multiples of X removed javascript program. View Answer…

 

Question

Write a function that takes an array and returns a new array with numbers that are multiples of X removed javascript program.

 

EXPERT ANSWER

we can remove multiplier of X from an array by using below function

  1. function removeMultiplesFromArray(sourceArr, multiplier) {
  2.   return sourceArr.filter(function(element)
Scroll to top