javascript
Optional params
...(categoryId ? {categoryId: categoryId} : {}),
Was this helpful?
Similar Posts
...(categoryId ? {categoryId: categoryId} : {}),