Jul 27, 2017 · 1 min read
Destructuring is an anti pattern.
Because it can give errors if object passed is undefined or null. We should use lodash _.get or _.at for safe destructuring.
Destructuring is an anti pattern.
Because it can give errors if object passed is undefined or null. We should use lodash _.get or _.at for safe destructuring.