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

feature/setMany #43

Closed
wants to merge 4 commits into from
Closed

feature/setMany #43

wants to merge 4 commits into from

Conversation

hilleer
Copy link
Member

@hilleer hilleer commented Jul 14, 2020

Kudos to @porfirioribeiro for original contribution: #16.

@hilleer hilleer marked this pull request as draft July 15, 2020 07:25
@hilleer hilleer marked this pull request as ready for review March 25, 2021 10:34
@hilleer hilleer requested a review from bifrost March 25, 2021 10:53
// Setter
var obj = { foo: { bar: 'a' } };
// var obj2 = dotProp.set(dotProp.set(obj, 'foo.bar', 'b') , 'foo.baz', 'x');
var obj2 = dotProp.setMany(obj, { 'foo.bar': 'b', 'foo.baz': 'x' });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we need a many group, I would expect: setMany, getMany and deleteMany.
In that case I would expect an array as input and output for getMany and not an object. Therefore I also expect an array as input for setMany.

@hilleer hilleer marked this pull request as draft March 26, 2021 08:42
* Add setAll function.
Useful when we need to change multiple properties at once

* Fix lint
@hilleer
Copy link
Member Author

hilleer commented Apr 9, 2021

Opened #45 instead.

@hilleer hilleer closed this Apr 9, 2021
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.

3 participants