Currying in Javascript
Currying in Javascript It can be understood as function caching. Consider the snippet below:
// utils.js
const submitForm = (formName: string) => (submittedFormData) => {
const currentForm = getForm(formName);
return submit = () => {
...
quan-ng.hashnode.dev1 min read