Update enumerability documentation (#5813)

It currently suggests the loop variable is the brand's title, while in
fact it is the brand's slug.
This commit is contained in:
Eric Cornelissen 2021-05-30 13:21:54 +02:00 committed by GitHub
parent 1cfaf5bd02
commit 24ae192ef7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,8 +102,8 @@ This is useful if you want to do a computation on every icon:
```javascript
const simpleIcons = require('simple-icons');
for (const title in simpleIcons) {
const icon = simpleIcons.Get(title);
for (const iconSlug in simpleIcons) {
const icon = simpleIcons.Get(iconSlug);
// do stuff
}
```