Skip to content
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

Adds ability to use equal with more than two arguments #31

Merged
merged 1 commit into from
May 19, 2017

Conversation

imjoshdean
Copy link
Contributor

Ran into a situation where I needed this, and was surprised to find it wasn't implemented.

@imjoshdean imjoshdean changed the title Adds ability to use with more than two arguments Adds ability to use equal with more than two arguments Apr 18, 2017
if (args.length > 1) {
var comparer = args.pop();

return args.every(function(compute) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is .every in every browser ... hahaha ... I kill myself ... but seriously ... it is in IE9 so yay!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️

@phillipskevin phillipskevin merged commit 944be12 into master May 19, 2017
@phillipskevin phillipskevin deleted the dev/multiple-equal branch May 19, 2017 16:29
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.

None yet

3 participants