Wouldn’t “pure functions” be more accurate and unerstandable?
Is it even possible? Doesn’t new mean an instance is returned?
It is actually discouraged by Google. Am I missing something? https://developers.google.com/web/updates/2019/02/rendering-on-the-web (ctr + f “ heavily discouraged”)
Can you give an example when monads are helpful outside of the Promise context?
At the first iteration an accumulator isn’t defined, so .map(undefined) should produce an error.
React code above could be shortened considerably, and be written more descriptively. Here is how the example above could be written in React. https://gist.github.com/carpben/8a8046cb09e4a33c7f2ca49ca660abaa
I think this might be deprecated
Didn’t work for me.
Either type? I couldn’t find anything about it. Do you mean Union type?