본문 바로가기

우당탕탕 우리네 개발생활

검색하기
우당탕탕 우리네 개발생활
프로필사진 미스터카멜레온

  • 분류 전체보기 (83)
    • book (16)
    • 생각정리 (19)
    • tech (45)
    • 회고 (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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 29 30 31
Tags
  • Validation
  • futureself
  • Study
  • PRISMA
  • 개발자
  • 자청
  • 오브젝트
  • 퓨처셀프
  • 객체지향의사실과오해
  • Nestjs
  • 스터디
  • 역행자
  • 일상속귀한배움
  • 독후감
  • 클린코드
  • 조영호
  • BOOK
  • typescript
  • validator
  • nodejs
  • AWS
  • OOP
  • 북스터디
  • 부자아빠가난한아빠2
  • nodemailer
  • googleapis
  • 세이노의가르침
  • Object
  • UNiQUE
  • serverless
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록ES6 (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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바