From b3fd4e99165a7b2a2ea5d729e6c20c2b015f1245 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Thu, 8 Oct 2020 07:22:39 +0800 Subject: [PATCH] Correct a typo in combine.md --- snippets/combine.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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