function decrement(input) { return input — 1; }A Guide To The Reduce Method In Javascript8.4K41Josh PitzalisAnzhelika KovalchukFollowSep 3, 2018 · 1 min readshould be minus sign