We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
YoungleehanKorean/server/controllers/product.js
Lines 150 to 159 in a45be18
const args = { ...((level && level.length > 0) && { category: level }), ...((age && age.length > 0) && { ageCategory: age }), ...((priceRange && priceRange.length) && { price: { $gte: priceRange[0], $lte: priceRange[1] } }), }; const products = await Product.find(args);
... is spread syntax. It really helps a lot! https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
The text was updated successfully, but these errors were encountered:
ryuina
No branches or pull requests
YoungleehanKorean/server/controllers/product.js
Lines 150 to 159 in a45be18
... is spread syntax. It really helps a lot!
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
The text was updated successfully, but these errors were encountered: