Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2012/12/combinators_1.md #25

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 2012/12/combinators_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ A common problem in programming is checking for `null` or `undefined` (hereafter
This recipe concerns pattern that is very common: A function `fn` takes a value as a parameter, and its behaviour by design is to do nothing if the parameter is nothing:

function isSomething (value) {
return value != null
return value !== null
}

function checksForSomething (value) {
Expand Down Expand Up @@ -218,4 +218,4 @@ Recent work:
[Reg Braithwaite](http://braythwayt.com) | [@raganwald](http://twitter.com/raganwald)

[andand]: https://github.com/raganwald/andand
[maybe]: https://en.wikipedia.org/wiki/Monad_(functional_programming)#The_Maybe_monad
[maybe]: https://en.wikipedia.org/wiki/Monad_(functional_programming)#The_Maybe_monad