function product(input){ if (toString.call(input) !== "[object Array]") return false; var total = 1; for(var i=0;i