JSFiddle - React, Tailwind, and code Playground
by henser
JavaScript
const getUrlWithParameters = (url, { cleanUrl, force, page, width } = {}) => {
console.log('yup');
if (page !== undefined) {
console.log('nope');
}
return `${url}${'lala'}`;
};
console.log(getUrlWithParameters("https://bla.com/ble", {page: 2}));