function downloadData(url, resourceId, searchText, pageNo, limit) {}
downloadData(...); // need to remember the order
Simpler way to do this-
function downloadData(
{ url, resourceId, searchText, pageNo, limit } = {}
) {}
downloadData(
{ resourceId: 2, url: "/posts", searchText: "programming" }
);
Thanks for reading 💙
Follow @codedrops.tech for daily posts.
Instagram ● Twitter ● Facebook
Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript
codedrops.tech
Top comments (0)