From 030e23b13e9d21b0775239c475ea137ad13e8a64 Mon Sep 17 00:00:00 2001 From: Mathieu Dutto Date: Wed, 24 Jul 2019 15:36:48 +0200 Subject: [PATCH] [guide] Fix npm package has usage example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 49f2b07e..931b69d0 100644 --- a/README.md +++ b/README.md @@ -298,10 +298,10 @@ Other Style Guides // best const has = Object.prototype.hasOwnProperty; // cache the lookup once, in module scope. + console.log(has.call(object, key)); /* or */ import has from 'has'; // https://www.npmjs.com/package/has - // ... - console.log(has.call(object, key)); + console.log(has(object, key)); ```