Skip to content

Commit 2e8e121

Browse files
committed
method chaining
1 parent 28d8c61 commit 2e8e121

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_chapters/functionaljavascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ console.log('job queued on the event loop...');
261261
> job queued on the event loop...
262262
> done.
263263
264-
### Method Chaining
264+
### Function and Method Chaining
265265

266266
*Chained functions* are a common pattern.
267267
Take a simple linked-list data structure as an example. We'll hard code a list object to start off with:
@@ -363,7 +363,7 @@ list123((_,r)=>r)((h,_)=>h) // we can call the parameters whatever we like
363363
```
364364
> 2
365365
366-
We can create accessor functions to operate on a given list:
366+
We can create accessor functions to operate on a given list (by passing the list the appropriate selector function):
367367
368368
```javascript
369369
const

0 commit comments

Comments
 (0)