Closed shahzdvp closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
some-drops-of-javascript | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 9, 2024 1:35am |
here's the updated example, I got a bit confused while committing because I'm still learning Git
is my pr is ok or do i want to make any changes
ehi @shahzdvp your PR is great, i was thinking to move it , from array to object directory, because in the end the groupBy is a method for object. if you feel confident you can do it, otherwise i can merge it and then i can move it
i think there is no object directory ,so i need to create one right..?
i think there is no object directory ,so i need to create one right..?
@shahzdvp i mean this one: https://github.com/roberto-butti/some-drops-of-javascript/tree/main/src/content/docs/03-var
Add documentation and example for array.groupBy() method
Description
This pull request adds comprehensive documentation and a practical example for the
array.groupBy()
method in JavaScript. This contribution aims to help developers understand and effectively use this method for grouping array elements.Changes Made
Documentation:
src/content/docs/02-array/24_array-groupby.md
array.groupBy()
methodExample:
examples/02-24_array-groupby.mjs
Documentation Overview
The documentation covers:
array.groupBy()
methodExample Overview
The example demonstrates:
array.groupBy()
with an array of objectsTesting and Formatting
bun run format-examples-bun
to ensure adherence to project formatting standardsAdditional Notes
array.groupBy()
, combining theory (documentation) and practice (example)Checklist
format-examples-bun
script has been run on the new example fileI'm open to any feedback or suggestions for improvement on both the documentation and the example. Thank you for reviewing this contribution!