JavaScript에 Object.map()
같은 함수 하나 있었으면 좋겠다. 맨날 Object.fromEntries(Object.entries(obj).map(...))
하기 귀찮다. (게다가 TypeScript에서 타입도 보존이 안 되어서 as
키워드 써야 함…)
If you have a fediverse account, you can reply to this note from your own instance. Search https://hackers.pub/ap/notes/0196134d-6b8e-791f-a8d8-8409493fb2de on your instance and reply to it.
@hongminhee@hackers.pub洪 民憙 (Hong Minhee) 저는 https://remedajs.com/에 모든 걸 의존하고
R.mapValues(obj, f)
하고 있어요.