Correct a typo in combine.md

This commit is contained in:
Felix Yan
2020-10-08 07:22:39 +08:00
committed by GitHub
parent 7f95bbb8f3
commit b3fd4e9916

View File

@ -5,7 +5,7 @@ tags: array,object,intermediate
Combines two arrays of objects, using the specified key to match objects. 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. - Use `Object.values()` to convert the resulting object to an array and return it.
```js ```js