getify / Functional-Light-JS

Pragmatic, balanced FP in JavaScript. @FLJSBook on twitter.
http://FLJSBook.com
Other
16.64k stars 1.96k forks source link

Fixed Currying ES6 Code #39

Closed deadcoder0904 closed 7 years ago

getify commented 7 years ago

nextCurried has to be declared... I used that empty/unused parameter location to do so. Your change wouldn't work b/c would try to assign to a not-declared identifier.

deadcoder0904 commented 7 years ago

Ohh Sorry !! My Bad :cry: I was checking at the ES6 code & the 3rd parameter was missing in the ES5 one so I thought it might be a mistake. Got it :+1: Bdw great books. U really taught me JS :smiley: