DEV Community

John Milner
John Milner

Posted on

2

. 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🤓🤓

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay