Created
June 28, 2020 10:20
-
-
Save hw0k/662a519624e48f7262456d1b6f6e9f4b to your computer and use it in GitHub Desktop.
FND 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createPage({ | |
title = '', // 해당 값이 없을 때 기본으로 사용할 값 | |
body = '', | |
tags = [], | |
actions = [], | |
} = {}) { /* ... */ } | |
// usage | |
createPage({ | |
title: 'Hello world!', | |
body: 'bodybodybody', | |
tags: ['onboarding'], | |
// 굳이 actions를 정의할 필요가 없어짐 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment