TypeScript or ES6 version of lodash _.set() for deep object property assignment skipping null checks

后端 未结 0 1008
伪装坚强ぢ
伪装坚强ぢ 2021-01-05 01:46

the following code in JavaScript/TypeScript will fail if b is null:

a.b.c = 1;

Lodash provides a safe way to do this with https://lod

相关标签:
回答
  • 消灭零回复
提交回复
热议问题