-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fold issues with ES5 #669
Comments
You're missing a |
Because you've missed a return. const concatenated = stream.fold("", (a,b) => a + b) In es5 is actually var concatenated = stream.fold("", function (a,b){ return a + b}); On Thu, 30 Jun 2016 4:42 pm Juha Paananen notifications@github.com wrote:
|
Sorry... Slow to the thread. On Thu, 30 Jun 2016 5:39 pm Darren Nolan me@darrennolan.com wrote:
|
Ok -thanks- solved for me ..im the slow one |
As shown on stackoverflow question
ES6 arrow function " => " works fine with observable.fold(seed, f)
However in strict ES5 syntax:
it doesn't work results in 'undefined' value on console
The text was updated successfully, but these errors were encountered: