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

Set default objects with Object.assign #286

Open
rtm opened this issue Jan 19, 2020 · 1 comment
Open

Set default objects with Object.assign #286

rtm opened this issue Jan 19, 2020 · 1 comment

Comments

@rtm
Copy link

@rtm rtm commented Jan 19, 2020

No, you should use object spread syntax here.

config = {
      title: "Foo",
      body: "Bar",
      buttonText: "Baz",
      cancellable: true
      ...config};
@rudotriton
Copy link
Contributor

@rudotriton rudotriton commented Jan 22, 2020

There is a pull request for it already: #204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.