Merge pull request #1417 from felixonmars/patch-2
Correct a typo in combine.md
This commit is contained in:
@ -5,7 +5,7 @@ tags: array,object,intermediate
|
||||
|
||||
Combines two arrays of objects, using the specified key to match objects.
|
||||
|
||||
- Use `Array.protoype.reduce()` with an object accumulator to combine all objects in both arrays based on the given `prop`.
|
||||
- Use `Array.prototype.reduce()` with an object accumulator to combine all objects in both arrays based on the given `prop`.
|
||||
- Use `Object.values()` to convert the resulting object to an array and return it.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user