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)