fix(keyBy): export keyBy from es-toolkit/map by zaewc · Pull Request #1650 · toss/es-toolkit · GitHub
Skip to content

fix(keyBy): export keyBy from es-toolkit/map - #1650

Merged
raon0211 merged 1 commit into
toss:mainfrom
zaewc:main
Apr 3, 2026
Merged

raon0211 merged 1 commit into
toss:mainfrom
zaewc:main

Conversation

@zaewc

@zaewc zaewc commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Problem

keyBy for Map objects was implemented in src/map/keyBy.ts and documented at https://es-toolkit.dev/reference/map/keyBy.html, but was not exported from src/map/index.ts

This caused an import error when users followed the documented usage

import { keyBy } from 'es-toolkit/map';
// SyntaxError: The requested module 'es-toolkit/map' does not provide an export named 'keyBy'                                        

Closes #1648

Solution

Add the missing export to src/map/index.ts

@zaewc
zaewc requested review from dayongkr and raon0211 as code owners March 17, 2026 02:26

@raon0211 raon0211 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks so much!

@raon0211
raon0211 merged commit b4c3cb4 into toss:main Apr 3, 2026
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.

Module 'es-toolkit/map' has no exported member 'keyBy' (ts2305)

2 participants