Skip to content

Commit dfe4c05

Browse files
authored
Update README.md
Fix context example
1 parent 349006b commit dfe4c05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ class Thing {
115115
}
116116
};
117117

118-
const process = asyncTransform( funcs );
119-
120-
process(3)
121-
.then( v => console.log(v) ) // { value: 64 }
118+
const thing = new Thing( 3 );
119+
thing.calculate(4)
120+
.then( v => console.log(v) ) // { value: 21 }
121+
122122
```
123123

124124
If you want to use the partial application option while also setting a context, just make sure to pass `undefined` for your value.

0 commit comments

Comments
 (0)