Is it possible to destructure a function parameter? For example, I would want to convert this: Object.entries({}).find(group=> group[0] === 'foo' && group[1] === 'bar');
Solution 1:
Notice that to destruct the arrow function parameters you should do ([key, value])
Post a Comment for "Destructure An Array Parameter"