Apply new format to snippets and template
This commit is contained in:
@ -5,8 +5,8 @@ tags: object,array,intermediate
|
||||
|
||||
Creates a new object from the combination of two or more objects.
|
||||
|
||||
Use `Array.prototype.reduce()` combined with `Object.keys(obj)` to iterate over all objects and keys.
|
||||
Use `hasOwnProperty()` and `Array.prototype.concat()` to append values for keys existing in multiple objects.
|
||||
- Use `Array.prototype.reduce()` combined with `Object.keys(obj)` to iterate over all objects and keys.
|
||||
- Use `hasOwnProperty()` and `Array.prototype.concat()` to append values for keys existing in multiple objects.
|
||||
|
||||
```js
|
||||
const merge = (...objs) =>
|
||||
|
||||
Reference in New Issue
Block a user