Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Object
- Validation
- Study
- 세이노의가르침
- 북스터디
- 클린코드
- 독후감
- 역행자
- 퓨처셀프
- googleapis
- 개발자
- nodemailer
- 오브젝트
- 부자아빠가난한아빠2
- typescript
- 자청
- AWS
- 조영호
- Nestjs
- BOOK
- futureself
- 스터디
- 객체지향의사실과오해
- OOP
- UNiQUE
- validator
- nodejs
- serverless
- PRISMA
- 일상속귀한배움
Archives
- Today
- Total
목록computed (1)
우당탕탕 우리네 개발생활
[JS] 객체 내 property를 동적으로 만들 수 있다?
여느 때와 같이 개발을 하던 중 다음과 같은 상황에 직면했습니다. const input: { catId: number | null; dogId: number | null; fishId: number | null; counts: number; name: string; } = /**/ const data: { catCounts?: number; catName?: string; dogCounts?: number; dogName?: string; fishCounts?: number; fishName?: string; } = {}; if (input.catId) { data.catCounts = counts; data.catName = name; } else if (input.dogId) { data.dogCou..
tech
2024. 3. 28. 23:58