Construct a function intersection that compares input arrays and returns a new array with elements found in all of the inputs.
Small bit of advice, seems like you use var and let interchangeably. I recommend using only let for variables that will change and const for variables that will not.
Coding Challenge
Construct a function intersection that compares input arrays and returns a new array with elements found in all of the inputs.
Small bit of advice, seems like you use var and let interchangeably. I recommend using only let for variables that will change and const for variables that will not.