1推荐信号
1讨论来源
2016-05-19最近提及
为什么 HN 用户提到它?
自动整理的讨论摘录,保留原始英文。阅读原文了解完整语境。
When I want to ensure strict immutability, I use an implementation of deepFreeze (https://github.com/jsdf/deep-freeze https://github.com/jsdf/deep-freeze) that recursively calls Object.freeze() on all child properties.阅读完整讨论