Skip to content

Commit

Permalink
add missing 'replace' to Appendix C. Close MostlyAdequate#401.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Feb 25, 2018
1 parent ecc18f7 commit 1372368
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions appendix_c.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ const prop = curry((p, obj) => obj[p]);
const reduce = curry((fn, zero, xs) => xs.reduce(fn, zero));
```

## replace

```js
// replace :: RegExp -> String -> String -> String
const replace = curry((re, rpl, str) => str.replace(re, rpl));
```

## safeHead

```js
Expand Down

0 comments on commit 1372368

Please sign in to comment.