Skip to content

Conversation

@JaberChowdhury
Copy link

Screenshot 2024-12-31 002333

@netlify
Copy link

netlify bot commented Dec 30, 2024

Deploy Preview for quicksnip ready!

Name Link
🔨 Latest commit 4e9f5bf
🔍 Latest deploy log https://app.netlify.com/sites/quicksnip/deploys/6772e5529a0eb600082514eb
😎 Deploy Preview https://deploy-preview-42--quicksnip.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason for the updates ? If not rollback them please

" arr.forEach((item) => {",
" counts[item] = (counts[item] || 0) + 1;",
" });",
" const duplicates = {};",
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could replace the duplicates part with a simple filter over the object

Object.fromEntries(
    counts.entries().filter(([key, value]) => value > 1)
)

It makes the code easier to understand at a glance.

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