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 algebra.id #46

Merged
merged 1 commit into from
Mar 10, 2017
Merged

adds algebra.id #46

merged 1 commit into from
Mar 10, 2017

Conversation

justinbmeyer
Copy link
Contributor

fixes #45

var algebra1 = new set.Algebra(set.props.id("_id"));
algebra1.id({_id: 5}) //-> 5

var algebra2 = new set.Algebra(
  set.props.id("studentId"),
  set.props.id("classId")
);

algebra2.id({studentId: 6, classId: "7", foo: "bar"})
    //-> '{"studentId": 6, "classId": "7"}'

@justinbmeyer justinbmeyer merged commit 44e7b1a into master Mar 10, 2017
@justinbmeyer justinbmeyer deleted the 45-id branch March 10, 2017 20:09
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.

Add id() method to algebra
1 participant