Skip to content

Conversation

@sugar700
Copy link

@sugar700 sugar700 commented Mar 5, 2012

Currently, "Max Array Value" doesn't really use CoffeeScript idioms. It uses .apply when splats could have been used instead.

@fhemberger
Copy link
Contributor

Why did you remove the Pre-ECMAScript5 version? .reduce() is not available in ECMAScript 3, and the .apply method should remain for backwards compatibility. I'll rewrite the chapter and include your changes, but leave the ES3 example intact.

@fhemberger fhemberger closed this Mar 5, 2012
@fhemberger
Copy link
Contributor

Merged your changes and kept the ES3 example. Thanks for the splats "shorthand".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants