1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-16 01:10:30 +02:00

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
}
```