First, the goods:
function filterByMultipleParams(dataToFilter, paramsToFilterBy) {
if (
typeof paramsToFilterBy === "object" &&
...
For further actions, you may consider blocking this person and/or reporting abuse
I love it! Thanks Tony, this is much cleaner!
If I'm reading it right, it is doing the same thing (iterating over the data array and filtering vs. every key/value of the params) but with cleaner syntax?
I haven't used Array.every() before. Gonna have to add that to my toolkit.