Format snippets
This commit is contained in:
@ -10,7 +10,8 @@ Iterates over all own properties of an object, running a callback for each one.
|
||||
- The callback receives three arguments - the value, the key and the object.
|
||||
|
||||
```js
|
||||
const forOwn = (obj, fn) => Object.keys(obj).forEach(key => fn(obj[key], key, obj));
|
||||
const forOwn = (obj, fn) =>
|
||||
Object.keys(obj).forEach(key => fn(obj[key], key, obj));
|
||||
```
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user