Destructure collection elements in FOR loops Â
Use destructuring syntax to extract specific properties from collection elements directly in the loop variable declaration. This eliminates the need for property access syntax within the loop body.Destructuring makes your queries more readable and explicit about which properties are being used in the loop body.