Skip to content

Make "Max Array Value" more "idiomatic". #39

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

Closed
wants to merge 1 commit into from
Closed

Make "Max Array Value" more "idiomatic". #39

wants to merge 1 commit into from

Conversation

LunaBorowska
Copy link

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