I\'d like to write a function in Javascript that allows me to pass in a mathematical operator and a list of ints and for each item in that list, apply the operator to it. >
just pass 1 or -1 as input then multiply all items with this after wh.