Merge pull request #1417 from felixonmars/patch-2

Correct a typo in combine.md
This commit is contained in:
Angelos Chalaris
2020-10-08 15:22:14 +03:00
committed by GitHub

View File

@ -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