diff --git a/README.md b/README.md index 5a6d678f..d0703471 100644 --- a/README.md +++ b/README.md @@ -2993,6 +2993,11 @@ Other Style Guides // good this.firstName = 'Panda'; + + // good, in environments where WeakMaps are available + // see https://kangax.github.io/compat-table/es6/#test-WeakMap + const firstNames = new WeakMap(); + firstNames.set(this, 'Panda'); ```