Skip to content

Commit 978c0ee

Browse files
authored
Use import instead of require
Don't recommend the use of require (See 10.1)
1 parent a75efdf commit 978c0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ Other Style Guides
288288
// best
289289
const has = Object.prototype.hasOwnProperty; // cache the lookup once, in module scope.
290290
/* or */
291-
const has = require('has');
291+
import has from 'has';
292292
293293
console.log(has.call(object, key));
294294
```

0 commit comments

Comments
 (0)