{"id":16473054,"url":"https://github.com/binki/maputil","last_synced_at":"2025-07-09T18:34:44.394Z","repository":{"id":143134222,"uuid":"95375253","full_name":"binki/maputil","owner":"binki","description":"Simple utilities for ES6 Map.","archived":false,"fork":false,"pushed_at":"2017-06-25T20:40:17.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-27T01:02:05.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-25T17:30:57.000Z","updated_at":"2017-06-25T17:40:30.000Z","dependencies_parsed_at":"2023-04-10T08:33:51.705Z","dependency_job_id":null,"html_url":"https://github.com/binki/maputil","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"834197b9bd705271ed354499eedcf1ad292567b9"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2Fmaputil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2Fmaputil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2Fmaputil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2Fmaputil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binki","download_url":"https://codeload.github.com/binki/maputil/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binki%2Fmaputil/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":257657022,"owners_count":22580877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T12:25:07.041Z","updated_at":"2025-07-09T18:34:44.348Z","avatar_url":"https://github.com/binki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Some utilities for `Map`. So far, there are very few. Please open\nissues with rationale to propose new additions.\n\n## `getOrSet(map, key, createValue)`\n\nIf `key` exists in `map`, return the value. Otherwise, set it to the\nvalue returned by `createValue()` and return the newly added value.\n\nThe ES6 `Map` [does not provide a DRY way to get or set a\nvalue](https://stackoverflow.com/a/44733792/429091). This function\ndoes that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinki%2Fmaputil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinki%2Fmaputil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinki%2Fmaputil/lists"}