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

Add object arguments form for spread method #61

Merged
merged 1 commit into from Jun 29, 2020

Conversation

sergeysova
Copy link
Contributor

// Before
spread(formReceived, {
  first: $first,
  last: $last,
});

const source = spread({
  first: $first,
  last: $last,
});

// NOW
spread({
  source: formReceived,
  targets: {
    first: $first,
    last: $last,
  },
});

const source = spread({
  targets: {
    first: $first,
    last: $last,
  },
});

BREAKING CHANGE: removed spread(source, targets) and source = spread(targets)

Closes #45
Closes #4

`spread({ source, targets })` and `source = spread({ targets })`

BREAKING CHANGE: removed `spread(source, targets)` and `source = spread(targets)`
@sergeysova sergeysova added the BREAKING CHANGES Some features changes without backward compatibility label Jun 29, 2020
@sergeysova sergeysova merged commit 85ee3c2 into master Jun 29, 2020
@sergeysova sergeysova deleted the refactor/4-45-object-arguments-form-for-spread branch June 29, 2020 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING CHANGES Some features changes without backward compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add object arguments form for spread add spread({ source, target })
1 participant