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

[Do Not Merge] Qubit release #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

oliverwoodings
Copy link

No description provided.

src/index.js Outdated
// We clone the options object because we mutate it later on. If we don't, then
// issues crop up if the caller re-uses the same options object between calls
// to this function.
options = clone(options);

Choose a reason for hiding this comment

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

options = { ...options } and you don't need an extra dependency

Choose a reason for hiding this comment

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

should be equivalent to a shallow clone

Copy link
Author

Choose a reason for hiding this comment

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

They don't use object spread anywhere in this repo, I didn't want to introduce it in case it was intentional (for support of older node versions perhaps)

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.

2 participants