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 ?

Discussion (2)

vonheikemen profile image

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

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

johnmilner33 profile image
John Milner Author

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