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:
parent
1cfaf5bd02
commit
24ae192ef7
@ -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
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user