Total :
/ Today :
/ Yesterday :
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 | 29 | 30 | 31 |
Tags
- Get
- AWS Route53
- ES6
- json
- javascript
- mysql
- ajax
- jsp
- spread operator
- AWS RDS
- mongodb
- topologySpreadConstraints
- sessionStorage
- post
- Java
- chartjs
- git
- ssh
- node.js
- Bootstrap
- 예매로직
- 영화예매
- terminationGracePeriodSeconds
- AWS
- MySQL Error
- Kubernetes
- html
- spring
- 인생이재밌다
- zombie-hit apartment
Archives
- Today
- Total
jongviet
Oct 10, 2021 - spread operator 본문
*10월10일
*Spread operator
-객체 넘길 때에는 새로운 객체 안에 넣어서 파라미터로 넘겨야하고, 받을 때도 새로운 객체 안에서 받는 형태여야만 가능
-그게 아닐 시 TypeError: Found non-callable @@iterator 에러남!!
const result = {
bankInfo: null,
accountInfo: null
}
function test( {bankInfo = undefined, accountInfo = undefined} ) {
console.log(bankInfo)
console.log(accountInfo)
}
test( {…result} )
'javascript & typescript' 카테고리의 다른 글
March 6, 2022 - typescript (0) | 2022.03.06 |
---|---|
Oct 17, 2021 - 불변성!! (0) | 2021.10.17 |
Sep 30, 2021 - 객체 형태 배열 string화 하기 (0) | 2021.09.30 |
Sep 25, 2021 - for await of (0) | 2021.09.25 |
Sep 5, 2021 - 자바스크립트 작동 원리 필기 (0) | 2021.09.05 |
Comments