[추가질문] 자료구조 2개 합치기
209
작성자 없음
제가 질문을 드릴 때 설명이 부족했나 봅니다.
입력과 출력은 아래와 같습니다. 기존에는 2중 for문을 함수형으로 변경을 하고 싶습니다.
// 입력 1 (로컬 디파인값)
{
"free1": {
"displayName": "자유게시판",
"description": " 참여공간 자유게시판"
},
"pds1": {
"displayName": "자료실",
"description": "정보자료실 (디지털자료실 제외)"
},
"review1": {
"displayName": "유저사용기",
"description": "유저분들을 위해 리뷰 · 활용비법을 게시"
},
"review2": {
"displayName": "자유사용기",
"description": "사용자 팁/사용기 아무거나 질문답변 · 토론의 장"
}
}
// 입력 2 (서버 호출 결과)
{
"code": 200,
"message": "ok",
"data": [{
"groupId": "1",
"groupName": "community",
"groupTitle": "커뮤니티",
"categories": [{
"no": "free1",
"displayName": "",
"description": "",
"attributeId": "/l/free",
"categorySkin": "lnbboard"
}, {
"no": "pds1",
"displayName": "",
"description": "",
"attributeId": "/l/pds",
"categorySkin": "pds"
}]
}, {
"groupId": "8",
"groupName": "information",
"groupTitle": "인포메이션",
"categories": [{
"no": "review1",
"displayName": "",
"description": "",
"attributeId": "/l/user_review",
"categorySkin": "user_review"
}, {
"no": "review2",
"displayName": "",
"description": "",
"attributeId": "/l/common_review",
"categorySkin": "common_review"
}]
}]
}
// 출력 (displayName와 description값을 로컬값에서 찾아와서 서버 결과값에 적용합니다.)
[{
"groupId": "1",
"groupName": "community",
"groupTitle": "커뮤니티",
"categories": [{
"no": "free1",
"displayName": "자유게시판",
"description": "참여공간 자유게시판",
"attributeId": "/l/free",
"categorySkin": "lnbboard"
}, {
"no": "pds1",
"displayName": "자료실",
"description": "정보자료실 (디지털자료실 제외)",
"attributeId": "/l/pds",
"categorySkin": "pds"
}]
}, {
"groupId": "8",
"groupName": "information",
"groupTitle": "인포메이션",
"categories": [{
"no": "review1",
"displayName": "유저사용기",
"description": "유저분들을 위해 리뷰 · 활용비법을 게시",
"attributeId": "/l/user_review",
"categorySkin": "user_review"
}, {
"no": "review2",
"displayName": "자유사용기",
"description": "사용자 팁/사용기 아무거나 질문답변 · 토론의 장",
"attributeId": "/l/common_review",
"categorySkin": "common_review"
}]
}]
답변 1
이미지 동시성 다루기
0
137
2
클로저와 같은 함수형 프로그래밍 공부
0
211
2
fx.js
0
463
2
fxjs 라이브러리 takeL 관련하여 질문드립니다.
0
359
2
[ 비동기 상황에서의 Lazy, Strict 기법이 혼합된 평가 ] 에 대한 이해
0
539
1
input값이 이터러블 함에도 range를 쓴 이유가 궁금합니다.
0
481
1
질문있습니다!
1
383
2
DB Insert관련
0
677
2
강의에 대한 제언
2
607
1
DOM 조작 관련 질문입니다.
0
419
1
L.map, L.filter
0
626
1
indexBy 함수에 대한질문입니다.
0
421
2
해당 강의를 듣고 나면
0
408
1
내용없음
0
245
1
함수 추출에 대한 고민
1
305
1
뷰 포트에 보이는 엘리먼트만 이미지 로드하고 싶을 때
1
343
1
기존에 반복문이 1개 돌던거를 이렇게하면 2번 도는데...
0
251
1
array in object... 는 어떤 식으로 재귀가 가능할까요..?
0
278
1
queryToObject 질문드립니다.
0
368
1
재귀는 어떻게 표현할 수 있을까요?
0
323
1
모든 명령형 => 함수형 가능한가요?
0
332
1
명령형 => 함수형 변환
0
353
2
이해한게 맞을까요?
0
224
1
iter의 개별 elements 에 data 를 삽입 또는 변형해서 삽입하는 경우엔 map 으로 제어를 하는게 맞을까요?
0
273
2





