From a55208b72360e9ea16b8561ff251cfc0716388b9 Mon Sep 17 00:00:00 2001 From: Alexander Zeilmann Date: Mon, 11 Jan 2016 18:58:26 +0100 Subject: [PATCH] Update tip 10 - Object.in is not a method --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bdbd0c5c..7f1d79eb 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ if (myObject['name']) { ... } ``` -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. +Thats ok, but you have to know that there are two native ways for this kind of thing, the [`in` operator](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 ways. ### See the big Difference