Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

23.6 자바스크립트 문법 문의 #367

Open
cloudbaby1991 opened this issue Oct 13, 2022 · 0 comments
Open

23.6 자바스크립트 문법 문의 #367

cloudbaby1991 opened this issue Oct 13, 2022 · 0 comments

Comments

@cloudbaby1991
Copy link

쿼리 문 중에 다음과 같은 코드가 있는데

여기서 ... 은 무엇을 의미하나요?

전개문법도 아니고 처음 보는 것 같습니다.

const query = {
...(username ? { 'user.username': username } : {}),
...(tag ? { tags: tag } : {}),
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant