Oggetti e Array
🏗️ Object Creation e Manipulation
Object Literals
// bad - using Object constructor
const user = new Object()
user.name = 'John'
user.email = '[email protected]'
// bad - verbose property assignment
const createUser = (name, email, role) => {
const user = {}
user.name = name
user.email = email
user.role = role
return user
}
// bad - mixed quote styles
const config = {
'api-url': 'https://api.example.com',
timeout: 5000,
"max-retries": 3
}Object Property Access
Object Copying e Updating
📚 Array Operations
Array Creation
Array Methods
Array Search e Testing
Array Aggregation
🔄 Advanced Patterns
Object Destructuring Patterns
Array Destructuring Patterns
Dynamic Object Manipulation
🎯 Performance Considerations
Efficient Operations
Last updated