marijnh / Eloquent-JavaScript

The sources for the Eloquent JavaScript book
https://eloquentjavascript.net
2.99k stars 790 forks source link

Regarding ch4's A list exercise #553

Closed gumbol closed 3 years ago

gumbol commented 3 years ago

for the nths function it asks to take a list and a number and return an element. Rest in this case is a reference but isnt it itself also an element?

e.g. if i input 1 the return would be the reference to the nested objects.

Thanks a lot

gumbol commented 3 years ago

i think i figure it out. i had some props naming problems