immutable-js/immutable-js

reviver for toJS

Open

#388 创建于 2015年3月14日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)TypeScript (1,774 fork)batch import
API-improvementenhancementhelp wanted

仓库指标

Star
 (33,046 star)
PR 合并指标
 (平均合并 12天 22小时) (30 天内合并 20 个 PR)

描述

I am using custom reviver with fromJS, which detects arrays with object having id property which I turn into OrderedMap instead of default List, which is very useful for traversing large JSON structures. Now I need to make the conversion other way round (OrderedMap -> array), but toJS does not support reviver.

Could be this considered as feature request? Or is there trick I can use?

Thanks!

贡献者指南