I was checking the code and I saw a weird function
const customFetch = client => (uri, options) => {
return new Promise((resolve, reject) => {
client(option1, option2)
}
}
So I was trying to create my own function like this
const suma = sum => (a, b)=>{
return a+b;
}
And if I run it suma(1,2) it returns a function, so the only way to run this is with suma(1,2)(1,2) But dont really understand why this is useful