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

object.and() #265

Closed
hueniverse opened this issue Apr 19, 2014 · 0 comments
Closed

object.and() #265

hueniverse opened this issue Apr 19, 2014 · 0 comments
Assignees
Labels
feature New functionality or improvement
Milestone

Comments

@hueniverse
Copy link
Contributor

Creates an 'all or nothing' dependency between keys. Similar to object.with() with the difference that with() is between one context key and many others while and() is between all the listed keys:

with('a', ['b', 'c']) - if a is present, both b and c are required, but if a is not and b is, c is not required.
and('a', 'b', 'c') - if any of the listed keys is present, all of them are required.

@hueniverse hueniverse added this to the 4.0.0 milestone Apr 19, 2014
@hueniverse hueniverse self-assigned this Apr 19, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

No branches or pull requests

1 participant