Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Aug 6, 2013

Simplified and sped up the "type-function" example.

There was no need for all the split(), toLowerCase() jazz. Just typing out the classToType object means this should run much faster and it's easier to read too.

peterhellberg added a commit that referenced this pull request Aug 7, 2013
Simplified and sped up the "type-function" example.
@peterhellberg peterhellberg merged commit 6f70518 into coffeescript-cookbook:master Aug 7, 2013
@peterhellberg
Copy link
Member

@doctorme Nice trick, not sure if there is a more idiomatic way to solve this particular problem.

@peterhellberg
Copy link
Member

I’ve now added you to the contributors team, welcome 👍

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.

1 participant