Skip to content

accepting a custom isEqual function - #16

Closed
mhelvens wants to merge 1 commit into
baconjs:masterfrom
mhelvens:master
Closed

mhelvens wants to merge 1 commit into
baconjs:masterfrom
mhelvens:master

Conversation

@mhelvens

Copy link
Copy Markdown

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