4 ms·
While it's easy to go overboard with destructuring like function foo({ quux: { foo: { bar: {
by 5e92cb50239222b 5y ago
While it's easy to go overboard with destructuring like
function foo({
quux: {
foo: {
bar: {
baz: [first]
}
}
}
}) {
console.log(first);
}
(I've seen things like this), that's what code reviews are for. I find destructuring one of the features that made reading (and writing) JavaScript actually tolerable.
- bionhoward 5y agoTry ramda.path https://ramdajs.com/docs/#path https://ramdajs.com/docs/#path