mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-05-02 09:06:43 +03: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
|
```javascript
|
||||||
const simpleIcons = require('simple-icons');
|
const simpleIcons = require('simple-icons');
|
||||||
|
|
||||||
for (const title in simpleIcons) {
|
for (const iconSlug in simpleIcons) {
|
||||||
const icon = simpleIcons.Get(title);
|
const icon = simpleIcons.Get(iconSlug);
|
||||||
// do stuff
|
// do stuff
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user