immutable-js/immutable-js

reviver for toJS

Open

#388 创建于 2015年3月14日

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

描述

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!

贡献者指南