Skip to content

Commit

Permalink
update tip
Browse files Browse the repository at this point in the history
  • Loading branch information
loverajoel committed Jan 11, 2016
1 parent 75ba5d1 commit f24d33d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To get updates, watch the repo and follow the [Twitter account](https://twitter

> 2016-01-10 by [@loverajoel](https://www.twitter.com/loverajoel)
When you have to check if a property is present of an object, you probably are doing something like this:
When you have to check if a property is present of an [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects), you probably are doing something like this:

```javascript
var myObject = {
Expand All @@ -34,7 +34,7 @@ if (myObject['name']) { ... }

```

Thats ok, but you have to know that there are two native methods for this kind of thing, `Object.in` and `Object.hasOwnProperty`, every object descended from Object, has available both methods.
Thats ok, but you have to know that there are two native methods for this kind of thing, [`Object.in`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in) and [`Object.hasOwnProperty`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty), every object descended from Object, has available both methods.

### See the big Difference

Expand Down

0 comments on commit f24d33d

Please sign in to comment.