Object Spread และ Rest
Object spread (…) และ rest patterns ช่วยให้จัดการ objects ได้ง่ายขึ้น TypeScript รักษา type safety ไว้ตลอด
Spread vs Rest
Section titled “Spread vs Rest”| Pattern | Syntax | ใช้สำหรับ |
|---|---|---|
| Spread | { ...obj } | Copy/merge objects |
| Rest | { a, ...rest } | Extract remaining |
Spread Flow
Section titled “Spread Flow”เข้าสู่ระบบเพื่อดูเนื้อหาเต็ม
ยืนยันตัวตนด้วยบัญชี Google เพื่อปลดล็อกบทความทั้งหมด
Login with Google