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

accepting a custom isEqual function #16

Closed
wants to merge 1 commit into from

Conversation

mhelvens
Copy link

This is to address #15.

This seems by far the easiest way to implement the feature, but introduces a slight inconsistency. Apparently the Model constructor is specified to treat an undefined initial value as any other value. Strictly enforcing this policy would make it impossible to specify a second argument without specifying an initial value. So this code enforces that policy only if no second argument is given.

Let me know what you think.

@mhelvens mhelvens closed this Nov 12, 2017
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