Skip to content

Conversation

@alxndrsn
Copy link
Contributor

No description provided.

Copy link

@AbdullahWins AbdullahWins left a comment

Choose a reason for hiding this comment

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

Good Job!

}

ids.map(function (id) {
ids.forEach(function (id) {
Copy link
Contributor

@SourceR85 SourceR85 Oct 16, 2023

Choose a reason for hiding this comment

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

In my opinion, a for ... of loop suites this block better:
because this is bound to this of the outer scope.

Copy link
Contributor

Choose a reason for hiding this comment

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

Alt.: an arrow-fn

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 both nicer options, but I want to keep incidental changes minimal.

@alxndrsn alxndrsn merged commit 10d9edc into apache:master Oct 16, 2023
@alxndrsn alxndrsn deleted the foreachnotmap branch October 16, 2023 17:55
alxndrsn added a commit to alxndrsn/pouchdb that referenced this pull request Nov 6, 2023
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.

4 participants