[guide] Add link to "has" package

Fixes #1670.
This commit is contained in:
Jordan Harband
2017-12-25 10:37:36 -08:00
parent 0991476c9f
commit f9fcb37af1

View File

@@ -297,7 +297,7 @@ Other Style Guides
// best
const has = Object.prototype.hasOwnProperty; // cache the lookup once, in module scope.
/* or */
import has from 'has';
import has from 'has'; // https://www.npmjs.com/package/has
// ...
console.log(has.call(object, key));
```