-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
here i tried to tyepscript the whole:
const cond = <T = any>(chain: T) => ({
if(condition: boolean, thanF: (obj?: T) => T, elseF?: (obj?: T) => T) {
return cond(condition ? thanF(chain) : elseF ? elseF(chain) : chain);
},
chain(f: any) {
return cond(f(chain));
},
end() {
return chain;
}
})what is the "chain" function for ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels