Skip to content

Commit

Permalink
Update memoization.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 3, 2017
1 parent dff0da6 commit a470126
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions workflow/memoization.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Just calculate the value of something once and reuse the value. This avoids the

```js
var cache = Object.create(null)

var cityOne = 'Murcia'
var cityTwo = 'Madrid'
var routeName = `${cityOne}${cityTwo}`
Expand Down

0 comments on commit a470126

Please sign in to comment.