Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

More code fixes / typos in Handbook Functions section #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chapters/More on Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ function map<E, O>(arr: E[], func: (arg: E) => O): O[] {
return arr.map(func);
}

// Parameter 'n' is of type 'number'
// 'parsed' is of type 'string[]'
// Parameter 'n' is of type 'string'
// 'parsed' is of type 'number[]'
const parsed = map(["1", "2", "3"], n => parseInt(n));
```

Expand Down