복잡한 조건에 이름 붙이기 | Frontend Fundamentals #81
Replies: 3 comments
-
중요한 내용이네요 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
안녕하세요! 유익한 글 감사합니다. const matchedProducts = products.filter((product) => {
return product.categories.some((category) => {
const isSameCategory = category.id === targetCategory.id;
const isPriceInRange = product.prices.some(
(price) => price >= minPrice && price <= maxPrice
);
return isSameCategory && isPriceInRange;
});
}); 위 코드에서 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
복잡한 조건에 이름 붙이기 | Frontend Fundamentals
변경하기 쉬운 프론트엔드 코드를 위한 지침서
https://frontend-fundamentals.com/code/examples/condition-name.html
Beta Was this translation helpful? Give feedback.
All reactions