I'm creating a personal project with React and Next.JS. I'm trying to pass a parameter with a default value in order to don't need to specify a value each time I'm using this function. How can I do this? To understand I want shouldShuffle parameter to be default false.
const getItems = async ({shouldShuffle}) => {
// my code
}
How can I do this?