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

chore: Object.groupBy polyfill #2287

Merged
merged 1 commit into from Mar 14, 2024
Merged

Conversation

johncowen
Copy link
Contributor

Now Typescript comes with built-in declarations for Object.groupBy its a little less annoying to polyfill use Javascript's Object.groupBy, also see the description in #2128.

This PR adds a polyfill and uses it an a couple of places where conversations have arisen lately. most of the change here is as a result of a re-nest, but the code that came up in past conversations is now just a one-liner.

There are a few places I'll be switching this in at some point (including the code in above linked PR)

I tested the polyfill manually in Firefox 118.

Signed-off-by: John Cowen <john.cowen@konghq.com>
@johncowen johncowen requested a review from a team as a code owner March 12, 2024 13:12
@johncowen johncowen requested review from kleinfreund and removed request for a team March 12, 2024 13:12
Copy link

netlify bot commented Mar 12, 2024

Deploy Preview for kuma-gui ready!

Name Link
🔨 Latest commit 30e2a3e
🔍 Latest deploy log https://app.netlify.com/sites/kuma-gui/deploys/65f054b2cc2d01000840daa2
😎 Deploy Preview https://deploy-preview-2287--kuma-gui.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.

@johncowen
Copy link
Contributor Author

FYI I'm considering add :group-by to DataCollection

@johncowen johncowen merged commit 878e471 into kumahq:master Mar 14, 2024
15 checks passed
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.

None yet

2 participants