DEV Community

loading...

Discussion on: Mastering Hard Parts of JavaScript: Callbacks I

semigradsky profile image
Dmitry Semigradsky

initialValue can be undefined

Thread Thread
deryckhenson profile image
Deryck Henson

yes...but accum = initialValue loses its purpose if it is.