Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update 2012/12/combinators_1.md #25

Open
wants to merge 1 commit into from

2 participants

@aredridel

Fix the comparison of something with null without strict equals. In this case it matters since you're talking about null being different from 0 and null.

@aredridel aredridel Update 2012/12/combinators_1.md
Fix the comparison of something with null without strict equals. In this case it matters since you're talking about null being different from 0 and null.
6e99ab4
@raganwald
Collaborator

Almost there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 15, 2012
  1. @aredridel

    Update 2012/12/combinators_1.md

    aredridel authored
    Fix the comparison of something with null without strict equals. In this case it matters since you're talking about null being different from 0 and null.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 2012/12/combinators_1.md
View
4 2012/12/combinators_1.md
@@ -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) {
@@ -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
Something went wrong with that request. Please try again.