Skip to content

Commit

Permalink
Fixed an issue that Teja pointed. Missed null on bind
Browse files Browse the repository at this point in the history
  • Loading branch information
srijayanth committed Oct 3, 2017
1 parent f11db9d commit 09ba81b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/call_apply_bind.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ var greaterThan=function(x,y) {
}

const numbersBelowThreshold=function(numbers,threshold) {
let isNumberBelowThreshold=greaterThan.bind(threshold);
let isNumberBelowThreshold=greaterThan.bind(null,threshold);
return numbers.filter(isNumberBelowThreshold);
}
```
Expand Down

0 comments on commit 09ba81b

Please sign in to comment.