diff --git a/snippets/combine.md b/snippets/combine.md index 03e0d8357..c526d4002 100644 --- a/snippets/combine.md +++ b/snippets/combine.md @@ -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