From 86498ad99011b0eb812b569e804e285803a0dcdf Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 26 Nov 2014 10:46:10 +1100 Subject: [PATCH] fix memoisation operator example --- doc/playground.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/playground.md b/doc/playground.md index ccc5270db0..2ee2ee9db4 100644 --- a/doc/playground.md +++ b/doc/playground.md @@ -44,7 +44,7 @@ equivalent to: ```javascript var obj = {}; -if (Object.prototype.hasOwnProperty.call(obj, "x")) obj.x = 2; +if (!Object.prototype.hasOwnProperty.call(obj, "x")) obj.x = 2; ``` ### Method binding expression