DEV Community

John Milner
John Milner

Posted on

. Remembering .reduce() arguments ?

Has anyone come up with an acronym to remember all of the arguments for the .reduce() array prototype method in JavaScript ?

Top comments (2)

Collapse
 
vonheikemen profile image
Heiker

A.V.K.? Accumulator, Value, Key.

Maybe you can think of avocados when you're trying to remember.

Collapse
 
johnmilner33 profile image
John Milner

Cool. Nice one, thank you for your replyπŸ€“πŸ€“