-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add a way to dynamically add to an AND or OR expression #10
Comments
i would like to work on this issue , can you please assign it to me? |
@sumitshinde-84: Assigned. |
Sir can you explain me what changes do you want exactly? |
Based on your suggestion I have implemented a push() method for dynamically adding conditions to an AND or OR expression. Here's the example implementation I came up with function and(expression) { // Constructor for EQ expression // Adding push() method to AND expression Does this align with what you were expecting? I would appreciate your feedback. |
@sumitshinde-84: Yes, this looks like the right direction! It would just need to be written as a modification of the existing code: the |
Currently you have to do:
It would be better to define a
push()
method that accepts the same arguments as theand()
constructor (either an expression or an object, where each key/value pair is converted into aneq()
expression).The text was updated successfully, but these errors were encountered: